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: 63
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: 63
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,097
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

Board footer

Powered by FluxBB