From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 12:16:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DAB1065672 for ; Tue, 23 Mar 2010 12:16:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id C43BF8FC1D for ; Tue, 23 Mar 2010 12:16:15 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o2NCG9XV002690 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 23 Mar 2010 12:16:10 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BA8B109.3060006@infracaninophile.co.uk> Date: Tue, 23 Mar 2010 12:16:09 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Aaron Lewis References: <4BA7181B.7070708@gmail.com> <4BA75155.8090507@infracaninophile.co.uk> <4BA7668E.3000200@gmail.com> <4BA7843A.30201@infracaninophile.co.uk> <4BA801A0.9090305@gmail.com> In-Reply-To: <4BA801A0.9090305@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Weird Problems with User Home Directory , Asking for help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 12:16:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22/03/2010 23:47:44, Aaron Lewis wrote: > Looks like i found the problem , i thought i've made a mistake. > > I shouldn't use `pw user add aaron' right ? > That won't create user home directory , when i found i've got no home > directory. > So at that time , i created it and change the owner to my user. pw user add is fine for creating accounts. It should create the home directory for you if given the right arguments. Even so, just creating the home directory by hand after creating the account should not be a problem. > $ sudo tail -f /var/log/auth.log > login: _secure_path: cannot stat /home/frozen/.login_conf: Permission > denied // Strange , pay attention to user permissions below This means that the ownership/permissions of one of the directories in the path up to /home/frozen is wrong. Implied is that it is possible for non-root to substitute their own copy of /home/frozen/.login_conf somehow. What's the output from: ls -ld / /home (Add /usr/home to that list if /home is a sym-link) Is there anything unusual about how the filesystem is mounted? > > // I don't know why > `stat' function fails .. > > $ ls -ld /home/frozen > drwxr-xr-x 3 frozen frozen 512 Mar 5 22:36 /home/frozen/ > $ ls -lah /home/frozen/.login_conf > -rw-r--r-- 1 frozen frozen 171 Dec 3 14:34 /home/frozen/.login_conf > > BTW: ssh login with user frozen is fine. Which is a little disconcerting, because ssh is pretty anal about file permissions itself, but it isn't triggering the problem here. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuosQkACgkQ8Mjk52CukIyL+QCgib3JZkMQDsa1JmKg8rqFiIIp EIYAniLNsh/lMANiJsFSbdx8oekEpMNR =NlkH -----END PGP SIGNATURE-----