David C. Rankin wrote:
Listmates,

Someone more clever than I must surely have solved this. How can I set through .bashrc or some other more secure way, the ability to alias "su" with its password so I don't have to type my root password every time I su. I have a very secure pw that is a bear to type 50 times a day.

alias su='su; <password>' or
alias su='su root <password>' or
alias su='su root; <password>'

Don't work. It almost looks like it would take a separate script to handle the "Password: " chat that su returns. Does anyone have a solution for this?



P.S. http://www.novell.com/coolsolutions/tools/17142.html has a number of good .bashrc examples.

Another solution may be to use libpam-keyring. It only works for GNOME logins, and I've only used it under Debian 4.0. You could have a look at the other PAM modules, too.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to