From owner-freebsd-security@FreeBSD.ORG Fri Oct 22 19:52:42 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 774EA16A4CE for ; Fri, 22 Oct 2004 19:52:42 +0000 (GMT) Received: from ns.pro.sk (proxy.pro.sk [212.55.244.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC6D443D1D for ; Fri, 22 Oct 2004 19:52:41 +0000 (GMT) (envelope-from prosa@pro.sk) Received: from peter (Peter [192.168.1.53]) by ns.pro.sk (8.12.11/8.12.11) with SMTP id i9MJqeLQ023369 for ; Fri, 22 Oct 2004 21:52:40 +0200 (CEST) (envelope-from prosa@pro.sk) Message-ID: <00ab01c4b870$a3024760$3501a8c0@pro.sk> From: "Peter Rosa" To: "FreeBSD Security" References: <1323.213.112.198.199.1098388008.squirrel@mail.hackunite.net> <008401c4b868$ffd64ac0$3501a8c0@pro.sk> Date: Fri, 22 Oct 2004 21:52:18 +0200 X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.3 (ns.pro.sk [192.168.1.1]); Fri, 22 Oct 2004 21:52:40 +0200 (CEST) X-RAVMilter-Version: 8.4.3(snapshot 20030217) (ns.pro.sk) Subject: Re: Default permissions of /home/user.. X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 19:52:42 -0000 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 :-)))