View previous topic :: View next topic |
Author |
Message |
yuqingcai n00b
Joined: 20 Jul 2012 Posts: 3
|
Posted: Fri Jul 20, 2012 9:10 am Post subject: problem of switching to "root" |
|
|
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 |
|
|
DawgG l33t
Joined: 17 Sep 2003 Posts: 866
|
Posted: Fri Jul 20, 2012 10:28 am Post subject: |
|
|
i think it's better to use as a normal user to get root and then to leave the root-account with 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"
-method with your gnome-environment and see if the problem persists.
GOOD LUCK! _________________ DUMM KLICKT GUT. |
|
Back to top |
|
|
yuqingcai n00b
Joined: 20 Jul 2012 Posts: 3
|
Posted: Fri Jul 20, 2012 11:29 am Post subject: |
|
|
DawgG wrote: | i think it's better to use as a normal user to get root and then to leave the root-account with 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"
-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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
|