Operating System - HP-UX
1829749 Members
2136 Online
109992 Solutions
New Discussion

Re: General permission of / tmp ?

 
SOLVED
Go to solution
T_T
Advisor

General permission of / tmp ?

With HP - UX for general permission of / tmp may how many whether or not ?
Though I set up seven hundred and seventy-five with our server,
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: General permission of / tmp ?

Hi,

Generally /tmp is set so that any user can have access to it. It also should be set up to have the sticky bit. What this means is so that users can create files in /tmp but not able to delete anyone elses file(s)

# chmod 777 /tmp
# chmod + t /tmp

See the man pages on chmod and umask

HTH
-Michael
Anyone for a Mutiny ?
T_T
Advisor

Re: General permission of / tmp ?

Though it is bin for an owner of /tmp,
is it necessary to do for root ?
Michael Tully
Honored Contributor

Re: General permission of / tmp ?

Hi,

Because of the permissions allowed on the directory/filesystem it allows anyone one to write/read etc. so it doesn't matter what user is the owner. In saying that I have root:sys as the owner of /tmp on one of my systems.

-Michael
Anyone for a Mutiny ?