Default permissions of /home/user..
Mark Magiera
mark at hyow.eu.org
Sat Oct 23 12:34:45 PDT 2004
> Sorry for my mistake - you use FreeBSD 5. The adduser command was changed
> to
> sh script in it. I do not use 5, so sorry again.
>
> If your /usr/sbin/adduser has in the start of lines 278 to 280 word
> "_pwcmd", add something like this after line 280:
> _pwcmd="$_pwcmd && chmod 700 $_home"
>
> Command stored in $_pwcmd is executed on line 282. The user should be
> added
> and homedir should be created. The addition above should chmod its homedir
> to 700 (drwx------) automatically.
>
> !!! AGAIN, NOT TESTED !!!
>
> Peter Rosa
Just a quick correction, you'll want to chmod $uhome not $_home. Having
done that, you can consider your suggestion tested and working.
Mark Magiera
More information about the freebsd-security
mailing list