Changing /tmp permission



Hi everybody !

First of all excuse me for my English it is quite bad.

I'd like to secure my tmp directory. I know I could make a partition
for this directory with noexec,nosuid,nodev, but I'd like to be more
secure.

I don't want that any users can access to my /tmp directory. So I'd
like to have permissions like 770 instead of 777. I know that many
applications need to write in /tmp directory, so I would like to
create a group named tmp for example where I would add users that need
to write in this directory. Instead of authorizing all users, I want
to limit access to only a determined group of users. So I have to
change group owner of /tmp to become tmp group instead of root group.

There is still a problem with that and the sticky bit. How can I
forbid access to deleting files that we don't own ?

Are there some behaviors or difficulties that I don't think about ?

Thank you in advance !

Bill
.



Relevant Pages

  • Re: Changing /tmp permission
    ... I'd like to secure my tmp directory. ... scripts create and access files in /tmp. ... "Linux in a Nutshell" ...
    (comp.unix.admin)
  • Re: Changing /tmp permission
    ... First of all excuse me for my English it is quite bad. ... I'd like to secure my tmp directory. ... to limit access to only a determined group of users. ...
    (comp.unix.admin)
  • Re: Making /var its own filesystem (T1000)
    ... Just got in a T1000 and ran the Solaris jumpstart and it creates ... /var and /usr under the root partition which is already 62% full out of the ... /var/run is a tmp file system, ...
    (comp.unix.solaris)
  • Re: Making /var its own filesystem (T1000)
    ... Just got in a T1000 and ran the Solaris jumpstart and it creates ... /var and /usr under the root partition which is already 62% full out of the ... /var/run is a tmp file system, ...
    (comp.unix.solaris)
  • Re: Making /var its own filesystem (T1000)
    ... /var and /usr under the root partition which is already 62% full out of the ... Jumpstart does allow you to set your own sizes (I don't know that I ... /var/run is a tmp file system, ...
    (comp.unix.solaris)