There's more than one way to do things | |
PerlMonks |
Re: Solaris Another User Problemby tobyink (Canon) |
on Dec 19, 2012 at 18:23 UTC ( [id://1009595]=note: print w/replies, xml ) | Need Help?? |
sudo has nothing to do with ssh. It's a program that allows you to run another command (in this case su superuser) as root. sudo can be configured (in /etc/sudoers) to prompt for a password or not. In turn, the su superuser bit it being run as root. Normally, su also prompts for a password, but it does not prompt when it's being run by root.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|