OSEC

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

From: Javier Viegas (javiercviegasgmail.com)
Date: Wed Oct 26 2005 - 14:07:59 CDT


On 10/26/05, mouss <usebsdfree.fr> wrote:
>
> 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.
>
>
>
Thanks for the clarification, there is something strange about vacation,
even if i use vacation user and vacation -I user, the .forward, .msg and .db
are been created on /root intead of /home/user. Im doing it with root, if i
su user and type the same commands the files are created anyway on /root ,
why is this??