Timeline for Run command from sudo su
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 12, 2019 at 15:33 | comment | added | Atul | I have tried what you are trying on my VM and it seems to work fine. What OS are you on? | |
| Apr 12, 2019 at 13:20 | comment | added | Igor Smitran | Maybe you can try this instead: ssh -t [email protected] "sudo su -c whoami serviceAccount" | |
| Apr 12, 2019 at 13:15 | review | Low quality posts | |||
| Apr 12, 2019 at 14:19 | |||||
| Apr 12, 2019 at 13:14 | comment | added | Tom Lous | If I could do that I wouldn't have this issue in the first place :-) | |
| Apr 12, 2019 at 13:13 | comment | added | Igor Smitran | Edit sudoers file and allow user serviceAccount to execute that command | |
| Apr 12, 2019 at 13:02 | comment | added | Tom Lous | Already tried that (see first below I've tried) | |
| Apr 12, 2019 at 12:57 | history | answered | Igor Smitran | CC BY-SA 4.0 |