Re: Changing /tmp permission



billdangerous@xxxxxxxxx wrote:
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.

noexec,nosuid is certainly okay,
and nodev is perhaps ok (e.g. will break certain X-servers).


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.


Don't!
Must be 1777

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

chmod +t


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


Yes, 95% of all applications including the shell use /tmp.


--
echo imhcea\.lophc.tcs.hmo |
sed 's2\(....\)\(.\{5\}\)2\2\122;s1\(.\)\(.\)1\2\11g;1s;\.;::;2'
.



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)
  • Changing /tmp permission
    ... 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 ...
    (comp.unix.admin)