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?
1. man sudo
or
2. don't exit of your su session 50 times per day,
try scaling back to, say, exiting your su session 5
times per day.
If you're sitting at your desk, there's no reason
to exit your su-ed shell immediately -- you're still
sitting in front of the keyboard.
I generally keep my su's in a konsole with a different
colored background than the other ones... that way,
it's easy to find.
P.S. http://www.novell.com/coolsolutions/tools/17142.html has a number
of good .bashrc examples.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]