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

SSHDriver: implement user switching via su #1220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 6, 2023

  1. driver/sshdriver: extend with su handling

    Add two new attributes to the driver which will use su to switch to a
    user to run a command. The su_password is required for this feature to
    be used, su_username only needs to be set if another user than root
    should be switched to.
    
    Signed-off-by: Rouven Czerwinski <[email protected]>
    Co-developed-by: Jan Luebbe <[email protected]>
    Emantor committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    4a9686d View commit details
    Browse the repository at this point in the history
  2. sshdriver: reduce loglevel when running commands

    This avoids potential SSH log messages from ending up in the command output,
    especially when using stderr_merge.
    
    Signed-off-by: Jan Luebbe <[email protected]>
    Signed-off-by: Rouven Czerwinski <[email protected]>
    Emantor committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    6742131 View commit details
    Browse the repository at this point in the history