Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 2004 21:52:18 +0200
From:      "Peter Rosa" <prosa@pro.sk>
To:        "FreeBSD Security" <freebsd-security@freebsd.org>
Subject:   Re: Default permissions of /home/user..
Message-ID:  <00ab01c4b870$a3024760$3501a8c0@pro.sk>
References:  <1323.213.112.198.199.1098388008.squirrel@mail.hackunite.net> <008401c4b868$ffd64ac0$3501a8c0@pro.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



P.S. This addition will be removed when you update your system. Try to find
better way :-)))




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00ab01c4b870$a3024760$3501a8c0>