Solved

linux

Posted on 2011-03-23
7
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Author Comment

by:D_wathi
ID: 35199213
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
ID: 35199497
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
ID: 35199584
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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

Author Comment

by:D_wathi
ID: 35200508
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
ID: 35200556
Try entering  this command as root:   init 5
0
 
LVL 12

Expert Comment

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

Author Comment

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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…
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…

724 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