Solved

problem with Linux server login.

Posted on 2006-06-12
7
317 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

813 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

14 Experts available now in Live!

Get 1:1 Help Now