You are not logged in.

#1 2013-02-16 09:05:12

personator
Member
Registered: 2013-02-16
Posts: 3

[SOLVED] Change directory failed on login

Hi,

I've just made a fresh install following the Beginners Guide, and after rebooting into Arch everything is ok if I login as root, but attempting to login as any other user gives me an error like:

-- user: /home/user: change directory failed: Permission denied


output of ls -l /home/ gives:

drwx------ 2 user users 4096 Feb 17 06:30 user

Help!

Last edited by personator (2013-02-16 15:51:04)

Offline

#2 2013-02-16 10:33:50

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 102
Website

Re: [SOLVED] Change directory failed on login

Perhaps something wrong with /home itself?

Please show the output of

ls -ld /home

Offline

#3 2013-02-16 10:44:51

personator
Member
Registered: 2013-02-16
Posts: 3

Re: [SOLVED] Change directory failed on login

Hey, thanks for the reply
ls -ld /home gives:

drwxr-xr-x 4 root root 4096 Feb 17 06:38 /home

Offline

#4 2013-02-16 11:52:01

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 102
Website

Re: [SOLVED] Change directory failed on login

personator wrote:
drwxr-xr-x 4 root root 4096 Feb 17 06:38 /home

Seems to be ok.

I can reproduce your error message when I do a chmod a-rwx /home/user but with 0700 as you wrote the login works.

Other wild guesses (with no profound knowledge from my side): Is the /home dir mounted from somewhere? Could it be some (misconfigured) security framework (selinux, AppArmor etc.) that blocks access to the home dir?

Last edited by demaio (2013-02-16 11:54:26)

Offline

#5 2013-02-16 14:52:29

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Change directory failed on login

What filesystem is this? If it's btrfs and you decided to put your / or /home in a subvolume, you need to chmod the subvolume to be 775 (I believe they're 700 by default).

Offline

#6 2013-02-16 15:48:45

personator
Member
Registered: 2013-02-16
Posts: 3

Re: [SOLVED] Change directory failed on login

Thanks for the help fellas (was ext4 btw), I ended up reinstalling arch and everything is running smoothly.  Maybe I screwed something up the first time round *shrug*

Offline

#7 2025-05-19 20:49:16

kshmr
Member
Registered: 2025-05-19
Posts: 1

Re: [SOLVED] Change directory failed on login

For anyone else that may be facing this issue the fix is to just change ownership of the home directory.

sudo chown $USER $HOME

Offline

#8 2025-05-19 22:25:02

tekstryder
Member
Registered: 2013-02-14
Posts: 518

Re: [SOLVED] Change directory failed on login

A 12 year necro, on a solved thread, with nonsense advice, in your very first post.

Bravo.

Last edited by tekstryder (2025-05-19 22:25:16)

Offline

#9 2025-05-19 22:47:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,475
Website

Re: [SOLVED] Change directory failed on login

As noted, please don't necrobump.

https://wiki.archlinux.org/title/Genera … bumping%22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB