Not sure if bug or i'm doing something wrong, switching to another user using sudo fails? `ssh_exec_wait(session, c('echo "mypassword!" | sudo -S su - user2'))` then when running the `whoami` still returns user1. Any input welcome, thanks.
Not sure if bug or i'm doing something wrong, switching to another user using sudo fails?
ssh_exec_wait(session, c('echo "mypassword!" | sudo -S su - user2'))then when running the
whoamistill returns user1.Any input welcome, thanks.