| View previous topic :: View next topic |
| Author |
Message |
mr-simon Guru


Joined: 22 Nov 2002 Posts: 314 Location: Leamington Spa, Warks, UK
|
Posted: Tue Dec 17, 2002 5:47 pm Post subject: Red root prompt on su |
|
|
Is there a way to get gentoo to re- source /etc/profile when I "su", so my red root prompt comes up? _________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Adopt an unanswered post |
|
| Back to top |
|
 |
rtn Guru

Joined: 15 Nov 2002 Posts: 427
|
Posted: Tue Dec 17, 2002 6:04 pm Post subject: Re: Red root prompt on su |
|
|
| mr-simon wrote: | | Is there a way to get gentoo to re- source /etc/profile when I "su", so my red root prompt comes up? |
--rtn |
|
| Back to top |
|
 |
c_kuzmanic Guru


Joined: 18 Apr 2002 Posts: 488 Location: Los Angeles , California
|
Posted: Wed Dec 18, 2002 2:51 am Post subject: |
|
|
You can put "source/etc/profile" in root's .bashrc .
That's what I do and it works perfectly. |
|
| Back to top |
|
 |
waverider202 Tux's lil' helper

Joined: 25 Sep 2002 Posts: 146 Location: Drexel University
|
Posted: Wed Dec 18, 2002 7:42 pm Post subject: su - |
|
|
if you want to do stuff as root, then use rtn's way: "/bin/su -". Just "/bin/su" will give your current user root access while a "/bin/su -" will login as root. _________________
 |
|
| Back to top |
|
 |
|