Do you know where your variables are? | |
PerlMonks |
Re^6: Automating sudo actionsby MidLifeXis (Monsignor) |
on Jan 25, 2011 at 14:07 UTC ( [id://884120]=note: print w/replies, xml ) | Need Help?? |
I hope that you meant, at most, the perl script. Be aware, however, that even this is not the first (or often the best) hammer in your toolbox. If you actually meant the perl executable itself..... ... ick ick ick. If I then have access to your perl suid executable, I now have root on the box. If I am using your suid perl executable for anything else, that anything else is now running as root on the box. The concept of least privileges would use that tool (suid) for a very limited application, with a very tight environment - never for something as powerful as the perl interpreter itself. Now, will it even allow itself to run suid root? I don't know if perl will allow you to --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|