bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chown and bash trashed part of system


From: Eric Blake
Subject: Re: chown and bash trashed part of system
Date: Tue, 30 Dec 2008 20:48:36 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Vincent Chapman on 12/30/2008 8:09 PM:
> $ sudo chown -R vincent:vincent .*  
> 
> Command very bad.  
> 
> .* wild card picked up directory entry '..' and like requested chown
> descended into sub directories, BUT chown also ascended into parent
> directory, in this case home, and descended into all sub directories

Thanks for the report, however, this is not a bug.  You have fallen victim
to a classic typo.  This FAQ describes things to be aware of, so that you
don't repeat it next time.

http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#ls-_002da-_002a-does-not-list-dot-files

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkla65QACgkQ84KuGfSFAYBaMgCghBhpB8i/G2QujxFRdRIc0+vM
FrcAn1su926FEQR/wPnIK8cCwNn+f5w7
=mVDe
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]