Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th April 2009, 11:07 AM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
Question no directory /home/###! logging in with home=/

I am a fresh guy in Linux,in fact I just install Fedora 10 in my PC which has been installed XP for few days.In the beginning I parted 8G space for Fedora's "/"partion,
I didn't separate the /home directory.
Today,after I mount a new drive in my disk as /home(I renamed my previous "/home"folder and made a new one ,then edited the script in /etc/fstab to automatic
mount the new drive,after restart the computer I moved all files from previous "/home" to new" /home" folder.It seems everything is OK,but when I logging in console
I always get this message " no directory /home/###! logging in with home=/ "(### refers my user name) Does anyone can help this issue ,thanks
Reply With Quote
  #2  
Old 4th April 2009, 11:09 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
What is the path specified in /etc/passwd?

Did you check if the permissions and ownership of the new /home are same?
Reply With Quote
  #3  
Old 4th April 2009, 12:03 PM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
"tangwen:x:501:501:tzwen:/home/tangwen:/bin/bash" I found this line in /etc/passwd,but I have no idea of it .I changed permissions of new /home but make things worse,I cannot logging in ,what is the problem?the ownership is me but i have no permission to access any file in my /home now,help
Reply With Quote
  #4  
Old 4th April 2009, 12:08 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Can you log-in as root? "Ctrl-Alt-F2"

Post the output of
Code:
# ls -l /home/
# df -hT
Reply With Quote
  #5  
Old 4th April 2009, 12:13 PM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
I run the chmod 777 on /home/tangwen ,now I can log in but still get the "no director~~~~"message
here is the output:
[tangwen@localhost ~]$ ls -l /home/
total 20
drwx------ 2 root root 16384 2009-04-04 15:40 lost+found
drwxrwxrwx 30 tangwen tangwen 4096 2009-04-04 18:38 tangwen
[tangwen@localhost ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda9 ext3 7.3G 4.4G 2.5G 65% /
/dev/sda8 ext3 8.3G 179M 7.7G 3% /home
tmpfs tmpfs 505M 352K 504M 1% /dev/shm
/dev/sda7 fuseblk 30G 27G 3.3G 89% /media/disk
/dev/sda6 fuseblk 54G 12G 43G 22% /media/disk-1
[tangwen@localhost ~]$
Reply With Quote
  #6  
Old 4th April 2009, 12:17 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Do you still have the old /home and files in it? Then try this

Code:
# chmod --reference=/old/home/tangwen -R /home/tangwen
I'm assuming your old home directory still has correct permissions.

Edit: Also trying this wouldn't hurt.

Code:
# chown --reference=/old/home/tangwen -R /home/tangwen
My assumption still applies for this command.
Reply With Quote
  #7  
Old 4th April 2009, 12:42 PM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
Oh I did a foolish thing,I have deleted the old one.I think maybe I should change the ownership to users on all files
Do you think it will works.By the way,I really appreciate you help.It's so kind of you.
Reply With Quote
  #8  
Old 4th April 2009, 12:45 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
That might work.
Reply With Quote
  #9  
Old 4th April 2009, 12:52 PM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
I also get this in selinux,does it influnce?
Summary:

SELinux is preventing access to files with the label, file_t.

Detailed Description:

SELinux permission checks on files labeled file_t are being denied. file_t is
the context the SELinux kernel gives to files that do not have a label. This
indicates a serious labeling problem. No files on an SELinux box should ever be
labeled file_t. If you have just added a new disk drive to the system you can
relabel it using the restorecon command. Otherwise you should relabel the entire
files system.

Allowing Access:

You can execute the following command as root to relabel your computer system:
"touch /.autorelabel; reboot"

Additional Information:

Source Context system_u:system_r:local_login_t:s0-s0:c0.c1023
Target Context system_u:object_r:file_t:s0
Target Objects / [ dir ]
Source login
Source Path /bin/login
Port <Unknown>
Host localhost.localdomain
Source RPM Packages util-linux-ng-2.14.1-3.2.fc10
Target RPM Packages filesystem-2.4.19-1.fc10
Policy RPM selinux-policy-3.5.13-53.fc10
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name file
Host Name localhost.localdomain
Platform Linux localhost.localdomain
2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23
23:37:54 EDT 2009 i686 athlon
Alert Count 21
First Seen Sat 04 Apr 2009 04:01:32 PM CST
Last Seen Sat 04 Apr 2009 07:33:58 PM CST
Local ID 255a09ef-5a1f-4b2c-b5f4-012d8f73b18a
Line Numbers

Raw Audit Messages

node=localhost.localdomain type=AVC msg=audit(1238844838.706:295): avc: denied { search } for pid=6442 comm="login" name="/" dev=sda8 ino=2 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=dir

node=localhost.localdomain type=SYSCALL msg=audit(1238844838.706:295): arch=40000003 syscall=12 success=no exit=-13 a0=9ae42e8 a1=1f5 a2=804d328 a3=bfdf0638 items=0 ppid=6426 pid=6442 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=tty4 ses=14 comm="login" exe="/bin/login" subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 key=(null)
Reply With Quote
  #10  
Old 4th April 2009, 12:56 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
The following is the suggested solution in the error message. The command needs to be run as root.

Code:
# touch /.autorelabel; reboot
Reply With Quote
  #11  
Old 4th April 2009, 01:07 PM
tzwen Offline
Registered User
 
Join Date: Apr 2009
Posts: 6
yeah,I just noticed that,now ,after reboot my pc,the problem was fixed.
Thank you for your kindness!
Reply With Quote
  #12  
Old 4th April 2009, 01:08 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
You're welcome.
Reply With Quote
Reply

Tags
directory, home or, logging, or home or ###

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Directory is gone :( Ernst0 Using Fedora 17 27th June 2009 05:20 AM
cannot delete /home directory whiphubley Using Fedora 5 1st January 2009 11:56 AM
useradd used with no home directory still shows home dir in passwd file marko Using Fedora 0 15th October 2008 08:30 PM
fedora directory server with automounting home directory balorg Servers & Networking 2 7th August 2006 12:20 AM
/home partition vs. /home directory leasure98 Using Fedora 3 28th May 2004 04:39 AM


Current GMT-time: 13:30 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat