Posts

Showing posts from September 7, 2018

Permissions remain 2700 after `chmod 0700`

Image
Clash Royale CLAN TAG #URR8PPP up vote 6 down vote favorite 1 Example: # show starting permissions % stat -c '%04a' ~/testdir 0700 # change permissions to 2700 % chmod 2700 ~/testdir # check % stat -c '%04a' ~/testdir 2700 # so far so good... # now, change permissions back to 0700 % chmod 0700 ~/testdir # check % stat -c '%04a' ~/testdir 2700 # huh??? # try a different tack % chmod g-w ~/testdir % stat -c '%04a' ~/testdir 0700 Bug or feature? Why does chmod 0700 ~/testdir fail to change the permissions from 2700 to 0700 ? I've observed the same behavior in several different filesystems. E.g., in the latest one, the relevant line of mount 's output is /dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered) Also, FWIW % stat -c '%04a' ~/ 0755 permissions chmod share | improve this question asked Nov 9 '17 at 15:44 kjo 3,858 7 34 58 Are you seeing any permission denied messa