LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2008, 02:16 PM   #1
samohn
Member
 
Registered: Aug 2008
Posts: 55

Rep: Reputation: 15
/root is missing?


I thought root home directory is /root, but it does not exist. Actually I thought I have seen it in previous installations of Fedora core 9.
Am I wrong? Or, there may be something wrong with the installation..?
 
Old 11-27-2008, 02:26 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 32
$ ls /

Do you see 'root' listed?
 
Old 11-27-2008, 04:28 PM   #3
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
You have to have /root! Did your Penguin leave you for the snow?
 
Old 11-27-2008, 05:54 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Have you looked in /etc/passwd to see what it is set to?
 
Old 11-27-2008, 06:28 PM   #5
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
If you're trying to get there while not logged in as root, SELinux may be preventing the normal user (you) from seeing it.
 
Old 11-27-2008, 06:40 PM   #6
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Xian View Post
$ ls /

Do you see 'root' listed?
Now no. But, I am sure it was under /.
 
Old 11-27-2008, 06:55 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,275

Rep: Reputation: 126Reputation: 126
Taking a different direction on your post:

What were you doing that caused you to notice that it was missing? Were you logged in as root and moving files in /somethingorother or in /root? If so, chances are you've moved /root somewhere else or perhaps deleted it.
 
Old 11-27-2008, 07:05 PM   #8
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by newtovanilla View Post
You have to have /root! Did your Penguin leave you for the snow?
I know. I am newbie but actually have used Linux a lot since early 90s but not for about 10 years. So, I thought /root should exist and it was there until last night.

I log on to the Fedora server as a user but not a root. I frequently use su command. This morning I felt strange when I used it because the prompt was not the same as before. On command line prompt used to show (I believe) current folder name, but all the suddenly it showed just bash-3.2#. Also, I found that cd ~ did not work.
Then, I tried to check the /root, but I could not find!
... I have just reinstalled Fedora core 9 4,5 days before because samba has never worked with the previous installation. Maybe, I am a little confused???
 
Old 11-27-2008, 11:21 PM   #9
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
You seem to have deleted or moved the /root directory, obviously unintentionally, maybe during your re-installation. Otherwise Fedora should have the /root directory just below / and this is certainly not something that RedHat and the Fedora people are about to change.

You need to figure what has gone wrong during re-install.

Last edited by Tinkster; 10-30-2010 at 06:12 PM.
 
Old 11-28-2008, 12:06 AM   #10
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Post your /etc/passwd file.
 
Old 11-28-2008, 02:24 AM   #11
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
juz simply creat a new one
 
Old 11-28-2008, 01:21 PM   #12
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Quote:
juz simply creat a new one
and leave the old Penguin out in the cold? I think you should find the old root, where did it go?
 
Old 11-28-2008, 01:29 PM   #13
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Code:
find / -type d -name root
 
Old 12-01-2008, 10:58 AM   #14
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by zetabill View Post
If you're trying to get there while not logged in as root, SELinux may be preventing the normal user (you) from seeing it.
I think that was it. I logged on the system as root and could see /root directory. I usually log on to the system as a user and frequently use su to make system level changes.

Thank you for your help. I have spent a few weeks for the samba which has never worked and I was so frustrated. Now that I can go back to work on the samba issue at least... I hope I can make it work this week.

Thank you again!
 
Old 12-01-2008, 11:29 AM   #15
samohn
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Thank you very much for the everybody who posted threads here. I have gotten a right answer from Zettabill. I was missing /root because SELinux hid /root directory when a user logged on SELinux system, but I did not know SELinux could hide /root directory.

What happened was that when I used su, the prompt sign changed to basic shell prompt instead of the one with current directory name. I thought the prompt sign did not change when I switched between root and a user. Then, I started searching for the root shell script in /root and could not find the root directory.

I think I probably saw /root when I logged on the system as root and thought it was always there even when I logged on as a user. But, I still do not know why I was not aware of that the prompt sign changed. Maybe it was just my confusion, I guess. I have used earlier version of Linux since 90s but have not used Linux for about 8 years and am not very familiar with SELinux. I probably should learn more SELinux or stop using it if it's not very necessary.

Samoh

Last edited by samohn; 12-01-2008 at 11:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Space on Root Partition newtommy Linux - General 2 11-27-2005 11:17 AM
kicker panel in root missing? barrythai Mandriva 1 06-05-2005 09:02 PM
Root window, am i missing the point here? jollyjoice Mandriva 10 11-17-2004 10:08 AM
root icons missing in 10.1 subzero0 Mandriva 0 10-14-2004 09:22 PM
Lost or Missing Root Password vdi_nenna Linux - Security 3 07-14-2002 09:41 AM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration