From owner-freebsd-questions Tue Feb 15 21:12:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by builder.freebsd.org (Postfix) with ESMTP id 05F894194 for ; Tue, 15 Feb 2000 21:12:35 -0800 (PST) Received: from nwlink.com (ip164.r3.d.bel.nwlink.com [207.202.172.164]) by smtp.nwlink.com (8.9.3/8.9.3) with ESMTP id VAA02853; Tue, 15 Feb 2000 21:13:02 -0800 (PST) Message-ID: <38AA30C1.50C51427@nwlink.com> Date: Tue, 15 Feb 2000 21:08:17 -0800 From: R Joseph Wright X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Ryan Thompson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: user account gone awry References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ryan Thompson wrote: > > On Tue, 15 Feb 2000, R Joseph Wright wrote: > > > > > > Send the output of the following commands (run as the user in question): > > > > > > ls -load ~ > > > > How about this: > > drwxr-xr-x 7 root wheel - 512 Feb 15 19:12 /root > > Good... But you shouldn't be using /root as your home directory as a user. > Almost certainly, your password file has been modified (maybe by you? :-) No. And I've never made /root my home directory as a user. And even if I had done something to the password file, wouldn't it all have been fixed when I 'rmuser'-ed joseph and then 'adduser'-ed joseph? But the results were the same. > > > id > > > > uid=1000(joseph) gid=1000(joseph) groups=1000(joseph), 0(wheel), > > 69(network) > > Looks normal enough. > > > > > > Things to check for: > > > > > > In ls output, does your username show up as the owner of the directory? If > > > you get a numerical uid instead of your username, that may be a sign that > > > your uid has been altered. Can you read and execute it? Does du output > > > anything at all, or does it say permission denied? Does the output of id > > > make sense? Does your uid match what it is supposed to be? > > > > It seems to think that my home directory is /root, even though id shows > > I am user "joseph". If I "startx", it even brings me into root's > > desktop. > > Yes... It looks that way. Did you rebuild your password database with > pwd_mkdb after the upgrade? You should do so. If that doesn't fix it, > almost certainly something got changed. Either edit /etc/master.passwd > and fix your home directory from /root to /home/joseph, or run chsh joseph > as root and change the home directory line. > > > > > > Also, if that first ls says permission denied, then the permissions on > > > /home or /usr/home are in question. Try ls -load /home instead. > > > > The permissions of /home are: > > lrwxrwxrwx root wheel > > Wow! It is generally a very Bad Idea to make /home world writeable. I > recommend permissions of 755 unless you have a VERY good reason > to do otherwise. (I can't think of one). I've never changed permissions to /home. > > It won't let me see the permissions on /home/joseph unless logged in as > > root. But they are as they should be: > > drwxr-xr-x joseph joseph > > Good enough. If you don't place public files in /home/joseph, and run > with multiple users, you may want to be more draconian about it and go > with 700 or 750, but 755 is relatively normal for home directories. I think I will remake world and see what happens. The only thing I've done that is semi-related to all this is adding myself to group network. And unless I really did a slip up on something without realizing it, I think ... I really don't know what to think. This is weird! > -- > Ryan Thompson 50% Owner, Sysadmin > SaskNow Technologies http://www.sasknow.com > #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message