![]() |
2010-01-11
, 12:28
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#2
|
![]() |
2010-01-12
, 13:22
|
Posts: 162 |
Thanked: 25 times |
Joined on Dec 2009
|
#3
|
If you login as root by just typing "root" then it'll probably run the .shrc file.
![]() |
2010-01-12
, 14:42
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#4
|
I found that I could set variables and add aliases as an mortal by creating a file '.shrc' in /home/user
However, this does not seem to work for root, at least not by becoming root with the command 'sudo gainroot' and creating /root/.shrc
How can I add aliases to root, or should I login as root in a different way? If so, how?
Thanks,
Paai