Solved

problem with Linux server login.

Posted on 2006-06-12
7
314 Views
Last Modified: 2010-04-20
Hello I have a Redhat server.

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

-bash-2.05b#

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.
0
Comment
Question by:eggster34
7 Comments
 
LVL 12

Expert Comment

by:Heem14
ID: 16888208
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

0
 

Author Comment

by:eggster34
ID: 16888367
I don't have any other users..
how can I add another user with root privileges from the command line?
0
 
LVL 16

Expert Comment

by:xDamox
ID: 16888411
Hi,

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
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 12

Expert Comment

by:Heem14
ID: 16888412
useradd

man useradd    for help on the command, you should be able to just do    useradd username
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 500 total points
ID: 16888429
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:

-----X8--------------
#!/bin/sh

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

#Everything after here needs to be commented out

-----X8--------------

HTH:)




0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16888455
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;)
0
 
LVL 1

Expert Comment

by:ico2
ID: 16892707
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]#"
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now