Making /var/mail mode 1777 (was Re: Installing sendmail SUID
installworld suggestion)
Danny Braniss
danny at cs.huji.ac.il
Thu Mar 15 11:07:08 UTC 2007
> On Thu, Mar 15, 2007 at 11:35:45AM +0100 I heard the voice of
> Oliver Fromme, and lo! it spake thus:
> >
> > What's the best way to prevent that? I tried editing the
> > appropriate mtree file, but that feels like a hack rather
> > than a clean solution.
>
> Well, I did it by the hack of stuffing a 'chmod 1777' in rc.local...
>
in /etc/mtree/BSD.var.dist, change
...
mail gname=mail mode=0775
to
mail gname=mail mode=1777
see also /etc/rc.d/var
danny
More information about the freebsd-stable
mailing list