From owner-freebsd-questions Thu Jun 8 12:15:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id ABE7737B614 for ; Thu, 8 Jun 2000 12:15:28 -0700 (PDT) (envelope-from willem@denary.brwn.org) Received: from denary.brwn.org (denary.brwn.org [192.168.1.17]) by snoopy.brwn.org (Postfix) with ESMTP id CED673ACA; Thu, 8 Jun 2000 21:15:24 +0200 (SAST) Received: (from willem@localhost) by denary.brwn.org (8.9.3/8.9.3) id VAA06978; Thu, 8 Jun 2000 21:15:24 +0200 (SAST) (envelope-from willem) Date: Thu, 8 Jun 2000 21:15:24 +0200 From: Willem Brown To: Rahul Siddharthan Cc: Meagan Jia Pi , questions@FreeBSD.ORG Subject: Re: question about chown Message-ID: <20000608211524.D6019@denary.brwn.org> References: <862568F8.0062581F.00@MCSMTP.MC.VANDERBILT.EDU> <058f01bfd178$5c380880$e293c83f@meagan> <20000609001909.A5699@physics.iisc.ernet.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000609001909.A5699@physics.iisc.ernet.in>; from rsidd@physics.iisc.ernet.in on Fri, Jun 09, 2000 at 12:19:09AM +0530 X-Public-Key: http://www.brwn.org/~willem/pubkey.txt Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Fri, Jun 09, 2000 at 12:19:09AM +0530, Rahul Siddharthan wrote: > Meagan Jia Pi said on Jun 8, 2000 at 11:35:45: > > Greetings! > > > > A friend of mine logged in as root and did this under some user's home > > directory: > > > > chown username .* > > > > trying to change ownership of all the hidden files, but a disaster happened: > > he unintentionally > > changed ownership for all the users' home directory to this paticular user. > > > > I understand the best way to do this is to go a directory above, and do > > "chown -R username", > > but I 'd like to find out why it happened that way. > > Because the shorthand for the directory immediately below the > current directory is .. which got included in .* > So if he was in /home/me, .. meant /home, and everything in /home got > chown'ed. > Just as well it was a chown and not rm -r :) > R. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > Regards Willem Brown -- /* =============================================================== */ /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ /* =============================================================== */ A budget is spending $15.00 on gas to drive to a shopping mall to save $4.30 on a 20 pound turkey. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message