clj-commons/clj-ssh

How to 'su' to another user?

JoePython1 opened this issue · 2 comments

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

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?

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.