Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solaris permission problem(newbie)



On Wed, 19 Apr 2000, Jerry Feldman wrote:

> First, the permission of /var/tmp and /tmp should be 0777.
> RWX for everyone. 
> Secondly, some software hard codes /tmp and /var/tmp and /usr/tmp. 

I prefer 1777.  This prevents users from being able to remove files they
don't own on most Unix systems.  Otherwise, if the directory is writable
by all, a random user can delete any file in it.

However, it occurs to me that your leading zero may have been intended
only to indicate that this is an octal number.  If you are doing this in a
system call, you do indeed need to use a leading zero to indicate octal,
so in this case it would be 01777, or else convert to decimal, which would
be 1023.

-- 
Derek Martin
System Administrator
Mission Critical Linux
martin at MissionCriticalLinux.com 

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org