SU command doesn't work properly
hi everyone,
i install fedora 15,and today when i was trying to become root,it asked for password and then i confront with: Code:
[majid@Fedora ~]$ su |
And what is the problem? Aren't you root now (check that with whoami)?
|
The "#" usually means that you are root.
But, if you want the environment settings to run, like changing the prompt, then you will need to do: Code:
su - |
@TobiSGD,yes i am root,sorry
but @szboardstretcher i did su - but my prompt does not change but how can i change my prompt? thank you guys |
|
Quote:
|
To change your prompt temporarily: PS1=& will change your prompt in &. Also the usual prefix will disappear, giving a command line that only shows the prompt of your choice.
Example: Code:
root@server:~# PS1=# |
All times are GMT -5. The time now is 03:22 AM. |