'chown' and hidden directories

Matthew Carpenter matt
Fri Feb 18 19:45:40 PST 2005


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

function dumbutt() {
~ for i in ($1/* $1/.[^.]*); do
~  find $i -type d | while read DIR; do
~   dumbutt $DIR
~  done
~  chown michael: *
~  chown michael: .??*
~  chown michael: .[0-9a-zA-Z!@#$%^&*()]
~ done
}

dumbutt /path/

heheheheheheh.  I don't have time to write much more obfuscated versions
that this one, but if I did it would probably resemble Fortran :)

A. Khattri wrote:
| On Fri, 18 Feb 2005, Coppernix wrote:
|
|
|>find /directory -type d -maxdepth 1 -mindepth 1 -exec chown -R michael: {}
|>\;
|
|
| Talk about using a sledgehammer to drive in a tack!
|
|
| --
|
| _______________________________________________
| 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

iD8DBQFCFollso9lqh4MragRAkdaAJwLBGLIXFTcMCEFF3YkaP6MbEBdegCg5WwW
FH0AG3kAPpNrQroijLNXSls=
=n2YV
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list