On Wednesday 16 January 2008 20:19, 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.
>
> ...

In addition to Jim C.'s suggestions, you can also start an interactive 
shell via su (or sudo) and then use the built-in "suspend" command to 
go back to the non-root shell from which it was invoked. Then you can 
re-enter it using the usual job-control commands. The shell will only 
honor a "suspend" command when it's not a login shell, so you don't 
have to worry about suspending a shell with no other shell "above" it 
to handle the suspended process state.

Even better (this is what I do), open a separate tab (or two) in Konsole 
in which you run a root shell and leave it run permanently. You just 
switch to that tab and run commands that require root privileges. I use 
a different Konsole "scheme" (color pattern) to give me a visual cue 
about which kind of shell I'm interacting with. Konsole also shows a 
distinctive tab icon for root shells.


> --
> David C. Rankin


Randall Schulz
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to