Skip to content

switch user using sudo failing #56

@ferguskeatinge

Description

@ferguskeatinge

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions