LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   su - root isn't acting right (https://www.linuxquestions.org/questions/linux-general-1/su-root-isnt-acting-right-4175444747/)

HotDogger 01-08-2013 07:35 PM

su - root isn't acting right
 
Using Fedora, and when I type in su - root, and enter my password, it returns the following:

-bash-4.2#

No idea how to fix this. Thanks for any help!

suicidaleggroll 01-08-2013 08:34 PM

You only need to do "su -", not "su - root". The root is implied.

Anyway, what's the problem? root often has a different prompt than normal users, looks normal to me.

kedarp 01-08-2013 08:35 PM

What is wrong with it?

TobiSGD 01-08-2013 08:37 PM

What you see is the default Bash prompt for the root user (indicated by the #-character, an unprivileged user by default has the prompt ending with $).
Seems to be OK to me.

HotDogger 01-09-2013 11:47 AM

Wasn't like that before, no idea why it changed, or how I can change it back.

suicidaleggroll 01-09-2013 11:51 AM

Change it back to what? What are you expecting it to look like?

You can use the environment variable PS1 to change your prompt to whatever you like.
http://www.cyberciti.biz/tips/howto-...up-prompt.html


All times are GMT -5. The time now is 03:32 AM.