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
In reply to Re^3: Problem using Net::OpenSSH->capture to su to another user
by salva
in thread Problem using Net::OpenSSH->capture to su to another user
by tim.culhane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |