The
+t should have no effect on
u and
g, but a
+s should have an effect. The manual page for "chmod" has a little information about SetGID, SetUID, and the sticky bit. You can watch it with "stat"
Code:
mkdir Folder01
chmod u-s,g-s,o+t Folder01;
stat -c"%a" Folder01;
chmod u-s,g+s,o+t Folder01;
stat -c"%a" Folder01;
chmod u+s,g+s,o+t Folder01;
stat -c"%a" Folder01;
I'm not sure that there is any effect of setting the SetUID bit on a directory, but on a file, especially an executable, you don't want it. It would allow other users to run the file as the owner of the file.
The sticky bit
o=t should just protect the files from deletion by others.