Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2000 21:15:24 +0200
From:      Willem Brown <willem@brwn.org>
To:        Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
Cc:        Meagan Jia Pi <meagan@e-lingo.com>, questions@FreeBSD.ORG
Subject:   Re: question about chown
Message-ID:  <20000608211524.D6019@denary.brwn.org>
In-Reply-To: <20000609001909.A5699@physics.iisc.ernet.in>; from rsidd@physics.iisc.ernet.in on Fri, Jun 09, 2000 at 12:19:09AM %2B0530
References:  <862568F8.0062581F.00@MCSMTP.MC.VANDERBILT.EDU> <058f01bfd178$5c380880$e293c83f@meagan> <20000609001909.A5699@physics.iisc.ernet.in>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000608211524.D6019>