Re: /dev/sdb5 = /home => /devsda5 - at login can't chdir to /home/phr -> left in "/" - but then "cd" works ?!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-08-11 12:19 p.m., Philip Rhoades via users wrote:
I installed a new disk with F34 and made the old disk with F33 on it the backup disk - but I continued to use partition /dev/sdb5 mounted on /home while I sorted out stuff.  When I finally rsynced everything from /dev/sdb5 to /dev/sda5 and mounted that on /home I got this weird problem - I have never seen it before:

When /dev/sdb5 is mounted on /home everything works as expected but when I umount that drive and then mount /dev/sda5 on /home and try and login as user "phr", I get an "unable to change to dir /home/phr" message and end up at "/".  However, if I just type "cd" and enter, I end up in /home/phr and everything seems to be working!  The dirs, files and permissions on both partitions seem to be identical so I am stumped about what is causing this login error . . any ideas?

It's probably an selinux issue. The labeling won't be correct because of how you copied the files. When you have /dev/sda5 mounted on /home, run "restorecon -rv /home" as root. See if that fixes the problem.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux