How to 'su' to another user? #7

Closed
JoePython1 opened this Issue Jan 26, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@JoePython1

Is it possible to "su - root" , type password and then execute commands?
It will be nice if this is part of the documentation.

@hugoduncan

This comment has been minimized.

Show comment Hide comment
@hugoduncan

hugoduncan Mar 2, 2012

Owner

Mm, not sure if possible or not. Normally I would set the target up for password-less sudo, which is then trivial to use. Is that a valid workaround?

Owner

hugoduncan commented Mar 2, 2012

Mm, not sure if possible or not. Normally I would set the target up for password-less sudo, which is then trivial to use. Is that a valid workaround?

@JoePython1

This comment has been minimized.

Show comment Hide comment
@JoePython1

JoePython1 Mar 3, 2012

I understand that I can getaway with sudo for most tasks. But there some tasks/programs which do not allow the use of sudo and need a tty and interaction. I was wondering whether I can use clj-ssh for those purposes.
Thank you for the response.

I understand that I can getaway with sudo for most tasks. But there some tasks/programs which do not allow the use of sudo and need a tty and interaction. I was wondering whether I can use clj-ssh for those purposes.
Thank you for the response.

@JoePython1 JoePython1 closed this Feb 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment