$ ls -ld /tmp
Gives the following output:
drwxrwxrwt 7 root root 1024 Jul 31 10:00 /tmp
The manpages mention that the "t" has something to do with making the file stay on the swap device. What is all this about?
SameerDS.
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Sometime on Jul 30, Sameer Sahasrabuddhe assembled some asciibets to say:
drwxrwxrwt 7 root root 1024 Jul 31 10:00 /tmp
The manpages mention that the "t" has something to do with making the file stay on the swap device. What is all this about?
That's for files. For directories, it means that only the owner can delte or overwrite files in the directory. Notice that it has world writable perms, which in normal conditions would allow anyone to delete anyone else's files.
Philip
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 30 Jul 2001, Sameer Sahasrabuddhe wrote:
$ ls -ld /tmp
Gives the following output:
drwxrwxrwt 7 root root 1024 Jul 31 10:00 /tmp
The manpages mention that the "t" has something to do with making the file stay on the swap device. What is all this about?
This 't' is for setting the sticky bit. If it is a directory and everybody is given rwx permission then everybody will be able to create the files in this directory and will be able to read everybody's files but nobody will be able to delete others files. If it is for file ( Used in olden systems for executables ) then the exec-prog is loaded only once in the memory. Used for exec-progs like 'vi' in olden systems.
Regards - --------------------------------------- Pankaj Jangid National Centre for Software Technology - ---------------------------------------