Solved

linux

Posted on 2011-03-23
7
242 Views
Last Modified: 2013-12-16
Dear Experts:

Iam having centos when login to gui home dir were avalaible , suddenly disappered the home and profile is some waht new. to fix texecuted rm -rf .* in the /root after that when done startx x still the same no home dir appears but then take a terminal from the gui it starts with like below
bash-3.2# pwd
/root
bash-3.2#

Please help me to fix this.
Thanks in advance.

0
Comment
Question by:D_wathi
7 Comments
 

Author Comment

by:D_wathi
Comment Utility
After coping the files from /etc/skel the consle from gui got changed to normal.[root@srv1 ~]#

but still the home dir and a default profile is missing it only loads a blank and task bar above and below please suggest me to bring it back to default or normal profile. Thanks in advance.
0
 
LVL 2

Expert Comment

by:maxalarie
Comment Utility
First : Nerver use  the command rm -rf when logged as root.  NEVER!
 
The home dir of root is /root and the home dir of users is /home.

Can you confirm /home exist?


0
 
LVL 31

Accepted Solution

by:
farzanj earned 500 total points
Comment Utility
Which account are you talking about?

First you need to login as root.

If you don't have your basic configurations, you can get some of it at least back by issuing the following command

cp -a /etc/skel/.* ~<userID>/

This should give at least part of the configuration you lost.
0
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.

 

Author Comment

by:D_wathi
Comment Utility
Thanks for for the reply. problem is when login as root and startx for gui iam not getting the default gui profile which will have home dir of root on the desktop also if tum drive is inserted automcatic display all this is not there now. cany anybody please give me the steps to correct this. Thanks in advance.
0
 
LVL 2

Expert Comment

by:maxalarie
Comment Utility
Try entering  this command as root:   init 5
0
 
LVL 12

Expert Comment

by:mccracky
Comment Utility
You need to look at your window manager configuration.  What window manager are you using?
0
 

Author Comment

by:D_wathi
Comment Utility
Thanks for the reply , using gnome windows manager. Please suggest
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

11 Experts available now in Live!

Get 1:1 Help Now