Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch user using sudo failing #56

Open
ferguskeatinge opened this issue May 3, 2022 · 1 comment
Open

switch user using sudo failing #56

ferguskeatinge opened this issue May 3, 2022 · 1 comment

Comments

@ferguskeatinge
Copy link

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.

@willschulz
Copy link

I'm having the same problem, any advice on this would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants