Solved

problem with Linux server login.

Posted on 2006-06-12
7
316 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 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