UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 3140 - September 11, 2009
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
COLLECTING FILES
NOTE: Depending on how the command is used, an admin with root can abuse their privileges.
If there are similar files on a system and you wish to collect the contents of those files (possibly for security reasons) the following command will search a system for a filename and output the contents into a file to be viewed.
# find / -name .rhosts -perm -004 -print > rhosts 2>e &
Another use was brought up that one could learn what other commands users use. They may have thought of some tricks you may not have:
# find / -name .bash_history -perm -004 -print >o 2>e &
--------------------------------------------------------------------------
To Subscribe: http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe: http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today
==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU ADVISES THAT
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.
Unix Guru Universe - www.ugu.com - tips@ugu.com - Copyright 1994-2001
==========================================================================
Tidak ada komentar:
Posting Komentar