On Saturday 08 May 2004 08.11, Jerome Lyles wrote:
100 = File/Directory is SUID 010 = File/Directory is SGID 001 = File/Directory is sticky (means nothing for files, for directories means that only owner of file may modify file even though directory is world writable, ref: /tmp)
If 001 means only the owner can change the file then the 'world' part of'world writable' means only the owner is the world, correct? Jerome
No. Normally when you make a directory world writable, anyone can delete or rename anything in that directory, no matter who created it. Try it. Create a directory with mode 777, create a file in there as root, then try to delete or rename it as your regular user. Works a charm, doesn't it? Deleting or renaming works on the directory, not on the actual file. However, if you make the directory sticky with mode 1777, only the owner of the file may delete or rename it. This is how /tmp works