FreeBSD shows "%" and not "#"

Hi all,

I've got a really big problem with my dedicated server. When I log in in my server with ssh, the console shows me % and not #.

errorip.jpg


Anyone can help me, please?

Regards.
 
% means you're logged in as a regular user. The # prompt means you are the root user. Type [cmd=]su -[/cmd] and enter the root password. FreeBSD generally does not allow you to log in as root directly. This is a good thing, leave it that way.
 
%id -a
Code:
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)


%whoami
Code:
root
 
If you are logged in as root, and getting % as the prompt, then it sounds like someone changed the profile for root.

Adam
 
Somebody has been mucking around with the prompt. What shell are you using?
 
Edit ~/.cshrc. Look for a line with set prompt. Change it to:
Code:
set prompt = "%n@%m:%~%#"

Log out and back in again, or
[cmd=]source ~/.cshrc[/cmd]
 
xKri said:
I've got a really big problem with my dedicated server. When I log in in my server with ssh, the console shows me % and not #.
Why is that such a "really big problem", if I may ask?

Fonz

P.S. It is recommended that you ssh into the server using a mortal user account and then su(1) to root, instead of logging in directly as root.
 
Why would there be a fault on the server? Somebody just modified the prompt, nothing more.
 
Back
Top