Net::Openssh and sudo?
using Net::Openssh how can i use sudo to become some other user (say root) on a target machine and then execute a series of commands as root?
i looked and tried to use the expect example given on Net::Openssh page but could not make it to work.
my $myssh = Net::OpenSSH->new($host,
port => $SSHPORT,
user => $USER,
password => $PASS,)
now how can i execute a sudo on this, thus becoming a different user and, then execute bunch of commands on this handle?
- Re: [kde-linux] KDE 4 and monitor powering off.
... I changed it so that it would run as root since I have to ... I have sudo configured so my normal user has very limited access (some ... commands, with specific parameters. ... The admin user has full passwordless access to do everything root could ...
- Re: use sudo without having to type password?
... > There are lots of very valid reasons for having password-less sudo ... > commands available. ... >> If you have to do anything as root, you should have to type a password ... It should stand as a warning that they're about to ...
- Re: AIX 5.1/5.2/5.3 local root exploits (diag issue)
... > environment variable as a prefix to an external binary executed as root. ... A vulnerability was discovered in the diag script that may allow any user ... To determine if this fileset is installed, execute the following ... various suid root AIX commands invoke the diag ...
- Re: Change Permissions on a new hard drive to allow write...Problem Solved
... Please tell how I could have solved the problem without logging in as ... You'd use sudo or one of its graphical derivatives, ... Those three commands could have been used to do everything you did ... logging in as root. ...
- Re: [opensuse] sudoers problem
... specific commands only, then gave the ALL commands privilege. ... Even when given root privilege for all commands, ... The script works from root and under sudo but i ...