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

4th April 2009, 11:07 AM
|
|
Registered User
|
|
Join Date: Apr 2009
Posts: 6

|
|
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
|

4th April 2009, 11:09 AM
|
 |
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?
|

4th April 2009, 12:03 PM
|
|
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
|

4th April 2009, 12:08 PM
|
 |
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
|

4th April 2009, 12:13 PM
|
|
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 ~]$
|

4th April 2009, 12:17 PM
|
 |
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.
|

4th April 2009, 12:42 PM
|
|
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.
|

4th April 2009, 12:45 PM
|
 |
Registered User
|
|
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068

|
|
|
That might work.
|

4th April 2009, 12:52 PM
|
|
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)
|

4th April 2009, 12:56 PM
|
 |
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
|

4th April 2009, 01:07 PM
|
|
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!
|

4th April 2009, 01:08 PM
|
 |
Registered User
|
|
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068

|
|
|
You're welcome.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 13:30 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|