OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: /home/user permissions?

From: mouss (usebsdfree.fr)
Date: Wed Oct 26 2005 - 12:47:32 CDT


Javier Viegas a écrit :

> Hi, this is a really stupid question, but honestly i don´t know it.
>
> Wich permission and ownership must /home/usermailbox should have?

in general: 700 for directories, 600 for other files. unless you need
special uids to read these, in which case you select the right group and
add the required permissions. when you find yourself needing a 'g+w',
then think twice, and when you need 'a+w', then find another job.

> i ask this , because im trying to set vacation program, and on
> postfix log it says can´t open .forward file, Pemission denied?

vacation doesn't need to read .forward. make sure it is not sending a
vacation to the recipient himself.
now, postfix should be able to read the .forward file. the latter must
belong to the user and must be rw by this user, nothing else.

>
> Actually i have setted /home/usermailbox as 777

Instead of trying random permissions, find out who is trying to access
the file, and if ok, give him permission. note that .forward should
never be writable by anoyone but the owner, for obviou reasons.

> and ownership usermailbox(user):mail(group)??
>
> Is this wrong or what?.
>
> Thanks.
>
> Javier.