Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem of switching to "root"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
yuqingcai
n00b
n00b


Joined: 20 Jul 2012
Posts: 3

PostPosted: Fri Jul 20, 2012 9:10 am    Post subject: problem of switching to "root" Reply with quote

hi, all.
I just finish install gentoo on my machine, using gnome desktop. I have a problem of switching the user account.
Under gnome-terminal ,I use command "su root" switch to root user, every thing goes fine, then ,I use command "su ***" go back to my normal account, it's fine too, but, when I use command "su root" again, it failed... .... the terminal stop when I finish input the password.
and I found something strange...
when I go back to my normal account ,the "PATH" variable changed,
before go to "root", the "PATH" is :"/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin"
back from "root", the "PATH" is:"/bin:/usr/bin"

hope help. :~(
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Fri Jul 20, 2012 10:28 am    Post subject: Reply with quote

i think it's better to use
Code:
su -
as a normal user to get root and then to leave the root-account with
Code:
exit
to return to "normal" user again. continuous "su-ing" from one account to the next creates unnecessary loops.
i tested what you stated with xfce and xterm and there were no problems but i suggest you test the "clean"
Code:
su -
...
exit
-method with your gnome-environment and see if the problem persists.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
yuqingcai
n00b
n00b


Joined: 20 Jul 2012
Posts: 3

PostPosted: Fri Jul 20, 2012 11:29 am    Post subject: Reply with quote

DawgG wrote:
i think it's better to use
Code:
su -
as a normal user to get root and then to leave the root-account with
Code:
exit
to return to "normal" user again. continuous "su-ing" from one account to the next creates unnecessary loops.
i tested what you stated with xfce and xterm and there were no problems but i suggest you test the "clean"
Code:
su -
...
exit
-method with your gnome-environment and see if the problem persists.
GOOD LUCK!


DawgG, thanks for your reply~!
It solved my problem! :-)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Jul 20, 2012 11:48 am    Post subject: Reply with quote

^D is the shortcut.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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