You are not logged in.

#1 2020-12-11 14:02:29

vegarab
Member
Registered: 2017-12-22
Posts: 47

[SOLVED] Moved /home to root then back - wrong user permissions

I had to encrypt my home partition after installation (https://wiki.archlinux.org/index.php/Dm … ile_system). I didn't have any external media to backup my /home folder on, so I just moved it to a folder /backup/home on my root partition.

Now when I have moved it back to /home on the new, encrypted partition, the users obviously don't have access anymore. I hoped running

chmod 775 /home

would do the trick, but it didnt.

How do I update the permissions on the folders in /home to what they are supposed to be?

Also, would I need to modify by fstab entries at this mount? The wiki was a bit vague at this point.

Last edited by vegarab (2020-12-11 14:29:04)

Offline

#2 2020-12-11 14:29:48

vegarab
Member
Registered: 2017-12-22
Posts: 47

Re: [SOLVED] Moved /home to root then back - wrong user permissions

chmod 755 /home
chmod 700 /home/user
chown -R user: /home/user

Offline

#3 2020-12-11 14:33:05

teckk
Member
Registered: 2013-02-21
Posts: 578

Re: [SOLVED] Moved /home to root then back - wrong user permissions

chmod 775 /home

/home should be

ls -ld /home
drwxr-xr-x 3 root root 4096 Mar 11  2017 /home

Or do you mean everything that is in that directory /home/

Last edited by teckk (2020-12-11 14:35:42)

Offline

#4 2020-12-11 14:48:26

vegarab
Member
Registered: 2017-12-22
Posts: 47

Re: [SOLVED] Moved /home to root then back - wrong user permissions

teckk wrote:

chmod 775 /home

/home should be

ls -ld /home
drwxr-xr-x 3 root root 4096 Mar 11  2017 /home

Or do you mean everything that is in that directory /home/

Yes! If you see my own reply, I ended up figuring out that `/home` needs 755 while the subdirs just needs the owner changed.

Offline

Board footer

Powered by FluxBB