How to 'su' to another user?
JoePython1 opened this issue · 2 comments
JoePython1 commented
Is it possible to "su - root" , type password and then execute commands?
It will be nice if this is part of the documentation.
hugoduncan commented
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 commented
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.