Solaris permission problem(newbie)

Derek Martin ddm at mclinux.com
Wed Apr 19 18:15:09 EDT 2000


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).



More information about the Discuss mailing list