http://www.perlmonks.org?node_id=1009595


in reply to Solaris Another User Problem

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'