Michael Bevilacqua on 1 Jul 2009 15:12:19 -0700 |
On Wed, Jul 1, 2009 at 4:39 PM, Michael Lazin <microlaser@gmail.com> wrote: Hi, occasionally I find a vulnerable script that I disable with something like find -name script_name -exec chmod 200 {} \; Not sure if this is what you are after. But this will find the script, chmod it, then link it to your home directory. You can replace ~ with the user's home directory in this example. find . -name script.txt -exec sh -c "chmod 200 {} && ln -s {} ~" \; Hope this helps. -- Michael D. Bevilacqua michael@bevilacqua.us ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|