You are not logged in.

#1 2014-02-12 19:09:13

stephenl7797
Member
Registered: 2014-02-09
Posts: 11

[Solved] X problems after moving home dir

Hey, so I tried to move home without reading up on it first. I managed to do it by copying it to a backup, changing the fstab, mounting /home to my new partition on a seperate drive, and copying all contents of the home-backup to the newly mounted /home

I rebooted and could login, but /bin/bash cannot access the /home/user directory with an error of Permsision denied. I googled it and found that I should do 'chmod 755 /' and 'chmod 755 /home/user'

Now I can access the directoyry as my user, but when I startx it prints "xauth: timeout in locking authority for /home/user/Xauthority" in about ~15 second intervals

Last edited by stephenl7797 (2014-02-13 03:58:12)

Offline

#2 2014-02-12 19:35:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] X problems after moving home dir

Your permissions on .Xauthority are too permissive.

chmod 600 .Xauthority

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-02-12 19:43:15

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] X problems after moving home dir

you should've used 'cp -p' when backing up to preserve permission, ownership etc.
either way, I think it should still apply the default permissions for files when you copy it (755 for directories and 644 for files if I'm not mistaken), but it will probably change the file onwnerships if you backed up with different user (like root).

I suggest checking file ownerships in your new /home, with 'ls -l'. If they're not owned by your user, you can change this for your /home with 'chown -R <yourusername>:users /home/<yourusername>'

Offline

#4 2014-02-13 03:57:58

stephenl7797
Member
Registered: 2014-02-09
Posts: 11

Re: [Solved] X problems after moving home dir

ooo wrote:

you should've used 'cp -p' when backing up to preserve permission, ownership etc.
either way, I think it should still apply the default permissions for files when you copy it (755 for directories and 644 for files if I'm not mistaken), but it will probably change the file onwnerships if you backed up with different user (like root).

I suggest checking file ownerships in your new /home, with 'ls -l'. If they're not owned by your user, you can change this for your /home with 'chown -R <yourusername>:users /home/<yourusername>'

It worked, thanks

Offline

Board footer

Powered by FluxBB