'chown' and hidden directories

Matthew Carpenter matt
Thu Feb 17 21:08:18 PST 2005


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

chown -R michael: .[^.]*



Michael Hipp wrote:
| Net Llama! wrote:
|
|> On Thu, 17 Feb 2005, Michael Hipp wrote:
|>
|>> How do you get chown to do hidden directories?
|>>
|>> If I have a directory tree with a bunch of stuff in it and I want to
|>> change the ownership of it all I thought to do:
|>>
|>>   chown -R michael: *
|>>
|>> But this does everything except hidden ".foo" directories. Is there some
|>> simple construct that will cause chown to hit all files and directories
|>> including hidden ones?
|>
|>
|>
|> chown -R michael: .*
|
|
| I tried that. It does bad things as it also does '.' and '..'.
|
| Thanks,
| Michael
| _______________________________________________
| Linux-users mailing list
| Linux-users at linux-sxs.org
| http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
|
| Need to chat further on this subject? Check out #linux-users on
| irc.linux-sxs.org !
|
|
|

- --
Matthew Carpenter
matt at eisgr.com                          http://www.eisgr.com/

Enterprise Information Systems
* Network Server Appliances
* Security Consulting, Incident Handling & Forensics
* Network Consulting, Integration & Support
* Web Integration and E-Business
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCFU0Zso9lqh4MragRAmdGAKC3jz9sKWt9XIEECVmyICYiadUaGgCfaV5n
orNhXTWARN72bD40qM2oZl8=
=mPZd
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list