Displaying 1 result from an estimated 1 matches for "sticky_on".
Did you mean:
sticktion
2014 Dec 31
0
[Bug 11027] New: Sticky bit not set when using --chmod=D+t alone, without --perms
...36 destination
*Want to force the setting of the Sticky Bit on all dirs
Starting with a mix of permissions
$ ls -l new_data .
.:
drwxr-sr-x. 4 redleader rebels 39 Dec 30 19:38 new_data
new_data:
drwxrwsr-x. 2 redleader rebels 6 Dec 30 19:38 sticky_off
drwxrwsr-t. 2 redleader rebels 6 Dec 30 19:38 sticky_on
$ rsync -rp --chmod=D+t new_data/ destination
Note: use -p [or --perms] and include the trailing slash on source_dir/
Result: All dirs have the sticky bit set
$ ls -l destination .
.:
total 0
drwxr-sr-t. 4 redleader rebels 39 Dec 30 19:42 destination
drwxr-sr-t. 4 redleader rebels 39 Dec 30 19:3...