For added security, we've disabled root login to server via ssh. We have a special ssh account that users need to login as, and then su as root in they require root access.
How can we setup passwordless logins using putty in this situation? I've setup passwordless login to the special ssh account, but we still need a password when we su as root.
If I'm not clear, feel free to ask me to clarify.
Edit /etc/sudoers via the
visudo
command.Add
Tip: http://www.sans.org/reading_room/whitepapers/basics/administration-shared-accounts_1271
You could also change in your sshd configuration file the following line :
This will allow users to login as root but only using something else than password (kerberos tickets, ssh keys etc...)
Start with adding the special account to the group: 'sudo'
Your system may already be configured to allow users in this group to sudo w/o password.
If not place this line in your
/etc/sudoers
(viavisudo
command)protip: it's possible to allow only certain commands to execute without password (
man sudoers
)