problem with Linux server login.

Hello I have a Redhat server.

when I log in via ssh, I see the prompt as this:


previously it used to be like:

[root@eggster /]#

furthermore, when I start up vncserver and log in to it, I see the graphical interface and everything but my "start" menu (the one with the shape of the hat) is limited to 3 options only, run command , lock screen , logout root and that's it.

I also cannot click on any of the icons like Home , it just doesn't work.
what's wrong with my system please help.
Who is Participating?
pjedmondConnect With a Mentor Commented:
useradd newname

Will add a new user.

passwd newname

to set the password.
In order to repair your profile, you need to copy the contents of /etc/skel into your home directory:

cp /etc/skel/.* ~/
In order to sort out VNC, you possibly need to start by editing ~/.vnc/xstartup

If needs to be something like this for your normal desktop:


# Uncomment the following two lines for normal desktop:
exec /etc/X11/xinit/xinitrc

#Everything after here needs to be commented out



sounds like root's profile is not getting loaded properly. try logging in as a different user and see what happens - then, you need to take a look in root's home directory and see if you can find the problem - maybe a corrupted file or a missing file

eggster34Author Commented:
I don't have any other users..
how can I add another user with root privileges from the command line?
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.


To add a new user you can type:

useradd test
passwd test

The first command adds a user called test the second command sets a password for the user test

man useradd    for help on the command, you should be able to just do    useradd username
Hmm - I'm just not fast enough these days!...or I'm making my answers too long!

As an aside, you shouldn't be doing anything other than system maintenance and critical tasks as root. Everything, unless absolutely necessary should be done as a user....because as root, it is very easy to mess things up:)......but you've got backups so it doesn't really matter;)
The environment variable: PS1 is not being set right, to get this: [root@eggster /]#
add this line to the end of /root/.bashrc:
export PS1="[\u@\h \w]#"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.