Hi! I have a directory structure
as@as:~/file@io/test_dir$ ll total 20 drwxrwsr-x 5 as root 4096 лют 4 20:26 ./ drwsr-sr-x 7 as as 4096 лют 4 19:58 ../ drwxrwsr-x 3 as root 4096 лют 4 20:23 td/ drwxrwsr-x 3 as root 4096 лют 4 20:27 test/ I have executed mkdir -p test/test --mode=7777 as@as:~/file@io/test_dir$ ll test total 12 drwxrwsr-x 3 as root 4096 лют 4 20:27 ./ drwxrwsr-x 5 as root 4096 лют 4 20:26 ../ drwsrw*x*rwt 2 as root 4096 лют 4 20:27 test/ As you can see the set-group-id bit is not set in directory test/test. Author is David MacKenzie Version of GNU coreutils is 8.25 umask was 0002.