su/sudo - WeOnlyDo Discussion board

su/sudo (General questions)

by dirk, Thursday, February 03, 2011, 16:56 (5042 days ago)

I want to give my users the possibility to execute something on a linux server and this via an SSH connection. The connection and the sending of a command are easy to do. However in some cases the login is done as user and then they want to execute a su root or sudo , after that I need to send the root (or other users they want to su/sudo to) password. Does this mean that I would have to analyse the received strings to see when I'm prompted for a password (assuming that all *nixes requests this in the same way) or can this be done differently?


dirk

Re: su/sudo

by wodDamir, Thursday, February 03, 2011, 17:00 (5042 days ago) @ dirk

Dirk,

Yes. You would need to handle server's response and execute/send an appropriate login and password.

Regards,
Damba

Re: su/sudo

by dirk, Thursday, February 03, 2011, 17:01 (5042 days ago) @ wodDamir

Ok
Thanks for the quick response.