Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Red root prompt on su
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Tue Dec 17, 2002 5:47 pm    Post subject: Red root prompt on su Reply with quote

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."
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Tue Dec 17, 2002 6:04 pm    Post subject: Re: Red root prompt on su Reply with quote

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?


Code:
/bin/su -


--rtn
Back to top
View user's profile Send private message
c_kuzmanic
Guru
Guru


Joined: 18 Apr 2002
Posts: 488
Location: Los Angeles , California

PostPosted: Wed Dec 18, 2002 2:51 am    Post subject: Reply with quote

You can put "source/etc/profile" in root's .bashrc .

That's what I do and it works perfectly.
Back to top
View user's profile Send private message
waverider202
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2002
Posts: 146
Location: Drexel University

PostPosted: Wed Dec 18, 2002 7:42 pm    Post subject: su - Reply with quote

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.
_________________
:-P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum