home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:9458 comp.unix.misc:3023
- Path: sparky!uunet!gatech!hubcap!ncrcae!ncrlnk!usglnk!usdsd1!dkowalsk
- From: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
- Newsgroups: comp.unix.questions,comp.unix.misc
- Subject: Re: proper mode for /tmp?
- Keywords: chmod /tmp
- Message-ID: <1526@usdsd1.DaytonOH.NCR.COM>
- Date: 27 Jul 92 17:22:18 GMT
- References: <1992Jul13.234001.18747@amhux2.am> <1992Jul17.195614.1703@tygra.mich> <1992Jul23.185224.9341@news.uni-stuttgart.de>
- Reply-To: dkowalsk@usdsd1.DaytonOH.NCR.COM (Dennis Kowalski)
- Organization: NCR USG Data Services Division
- Lines: 47
-
- In article <1992Jul23.185224.9341@news.uni-stuttgart.de> skok@itwds1.energietechnik.uni-stuttgart.de (Holger Skok) writes:
- >
- >Hi all you UN*X gurus out there!
- >
- >I recently deleted my entire /tmp-directory on a SUN IPX. (faulty
- >crontab entry).
- >How do I set the the proper mode for that directory? What do the entries
- >in the output of ls -l mean?
- >More specifically: what number goes here (v)?
- > chmod ?777 /tmp
- >and what are these: v v ?
- > drwsrwxrwt ... /tmp
- >
- >Any help appreciated!
- >--
- >*************************************************
- >* Those stupid, horse-brained masses! *
- >* OPUS (of meadow fame) *
- >*******************************************HSK***
-
-
-
-
- I would think that the proper mode would be 1777.
-
- The 1xxx format of chmod sets the "sticky bit" in the directory entry.
-
- The "sticky bit" will inhibit any user (except root) from deleting any
- file that is not owned by that user id.
-
- The sticky bit is needed because without it, anyone with write permission
- to a directory can delete any file in the directory, even if he/she does not
- own the file or even have write permission to it.
-
- It is really odd that you can not modify the files owned by someone else,
- but you can delete them.
-
- That is because by virtue of having write permission at the directory level,
- one is allowed to perform directory level maintenance (i.e. remove unwanted
- files).
-
- At least that is the way it works on out SVR 5.3 system.
-
- --
- Dennis Kowalski NCR Corporation PCD-3 (513) 445-1843
- Systems Architecture 1700 S. Patterson Blvd VOICEplus 622-1843
- USG Data Services Div Dayton, Ohio 45479 Dennis.Kowalski@DaytonOH.NCR.COM
-