I have created a directory called
newDir and changed the group it belongs to with
mkdir newDir && chgrp test-group newDir.
I was user
me when I did this.
stat newDir produces expected output:
File: newDir Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 801h/2049d Inode: 10756102 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 1001/ me) Gid: ( 1003/test-group) Access: 2018-01-27 17:03:07.514864274 +0100 Modify: 2018-01-27 17:03:07.514864274 +0100 Change: 2018-01-27 17:05:08.317543163 +0100 Birth: -
Later, logged in as user
otherUser, I tried to set the group ID (setgid) permission bit on the directory using
chmod g+s newDir.
Disappointingly, I see with
stat that the permissions haven't changed. I got no error on stderr, though, and the result of the
chmod command is 0, as shown by
chmod g+s newDir have no effect?
I'm on Arch Linux 4.14.13.