Sudo and aliases
Hello
vi is aliased to vim Code:
[ricardo@athena /]$ type vi Code:
[ricardo@athena /]$ ps a | grep vi |
Did you have aliased vi to vim for the root user also?
|
Yup - it's in ~/.bashrc
Code:
[root@athena ~]# id |
As far as I know, sudo ignores aliases ... for what should be obvious reasons. Think about it like a University freshman would have done in the 1970's...
(Heh... after you finish that delicious bong ...) |
Solution!
in ~/.bashrc Code:
alias sudo="sudo " |
All times are GMT -5. The time now is 10:09 AM. |