in reply to Re^2: Problem using Net::OpenSSH->capture to su to another user
in thread Problem using Net::OpenSSH->capture to su to another user
sudo: sorry, you must have a tty to run sudo
You are using an old version of sudo. Update it if you can.
I get my original error back again:muxserver_accept_control: tcgetattr: Invalid argument tcgetattr: Inval +id argument
This error is harmless, you can safely ignore it. Also, you can silence it adding the following option into the constructor call: master_stderr_discard => 1
This seems to just report the current working directory of the loguser usersudo su -c "pwd" imail /home/loguser
Add the flag -l to the su command: sudo su -lc "pwd" imail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem using Net::OpenSSH->capture to su to another user
by tim.culhane (Initiate) on Jun 04, 2014 at 10:55 UTC | |
by salva (Canon) on Jun 04, 2014 at 11:05 UTC | |
by tim.culhane (Initiate) on Jun 04, 2014 at 12:59 UTC | |
by salva (Canon) on Jun 04, 2014 at 13:09 UTC | |
by tim.culhane (Initiate) on Jun 04, 2014 at 13:51 UTC | |
|