Samuel,
On 2021-08-12 05:49, Samuel Sieb wrote:
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.
Ah yes, that sounds like the problem - thanks!
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au