From owner-freebsd-questions Mon May 6 10:55:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by hub.freebsd.org (Postfix) with ESMTP id 4121837B404 for ; Mon, 6 May 2002 10:55:13 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g46Hs7b34422; Mon, 6 May 2002 12:54:07 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020506125406.0181b040@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 06 May 2002 12:54:06 -0500 To: Nathan Kinkade From: "Jack L. Stone" Subject: Re: Directory Ownership Trashed Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020506105410.650528c5.nkinkade@dsl-only.com> References: <3.0.5.32.20020506122513.0181b040@mail.sage-one.net> <3.0.5.32.20020506110239.0181b040@mail.sage-one.net> <3.0.5.32.20020506110239.0181b040@mail.sage-one.net> <3.0.5.32.20020506122513.0181b040@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 10:54 AM 5.6.2002 -0700, Nathan Kinkade wrote: >On Mon, 06 May 2002 12:25:13 -0500 >"Jack L. Stone" wrote: > >> At 10:14 AM 5.6.2002 -0700, Nathan Kinkade wrote: >> >On Mon, 06 May 2002 11:02:39 -0500 >> >"Jack L. Stone" wrote: >> > >> >> Am running 4.5-RELEASE >> >> >> >> Last night, I noticed a strange & unwanted change to the directory >> >> ownership that has permeated ALL of the user's home directories. >> >> For example, the home for "sageame" below has "subs2" as the owner >> >> of the"../" directory and the same "trash" appears in every user's >> >> home."subs2" is another user but appears this way in every home >> >> directory. I removed a user at about the time this happened... did >> >> I somehow trash the ownership structure? >> >> >> >> I may have messed up when I used "pw deluser " for the first >> >> time instead of just "remuser". I put the user back, but the one >> >> deleted wasn't the user "subs2" >> >> >> >> Does anyone know how this could happen and how do I fix it >> >> back...???? HELP! >> >> >> >> ================================================================== >> >> ===================== >> >> drwxr-xr-x 21 sageame wheel - 1536 May 5 18:22 ./ >> >> drwxr-xr-x 28 subs2 wheel - 512 May 5 22:06 ../ <==== >> >> "subs2" should be "sageame" >> >> -rw-r--r-- 1 sageame wheel - 0 Jan 11 10:11 .addressbook >> >> -rw------- 1 sageame wheel - 2285 Feb 17 10:13 .addressbook.lu >> >> etc., etc.,..... >> >> ================================================================== >> >> === >> > >> >I'm not sure how it happened, but assuming the above view is only one >> >level into the users home dir it should be a quick fix. If so then >> >you could just:$ chown root:wheel /usr/home # or other apropriate >> >owners >> > >> >To Unsubscribe: send mail to majordomo@FreeBSD.org >> >with "unsubscribe freebsd-questions" in the body of the message >> > >> OUCH! Spoke too soon! It changed ALL of the other users to the same >> corrected user instead on the one it should be.... seem to all be >> linked! Now what...??? This is maddening! > >In a manner of speaking they are all 'linked', but really it's just that >from the perspective of each users home dir the '..' references the same >directory....probably /usr/home....so when you attempt change the >ownership for '..' in one users dir you are really changing the >ownership for the directory that '..' points to, which, again, is almost >certainly /usr/home - unless you've done something non-standard. So, >what happens when, as root, you type:$ cd /usr >$ chown root:wheel home >$ ls -l # just to see what chown did > Ah.... okay, that was it... I didn't back up far enough... still don't know what did it in the first place. The box just went on production and didn't need some mysterious proble. Thanks, Nathan. .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message