You are not logged in.
I made a fresh arch install, using grub2-efi, btrfs and luks encryption. I followed the wiki for the most part and can boot my installation succesfully. I added an user account, following the Beginners Guide but get a permission denied error when trying to login as this user. I think its a similar issues as here but there is no resolution mentioned in the thread.
[root@bombadil ~]# su - crito
su: warning: cannot change directory to /home/crito: Permission denied
su: /bin/bash: Permission denied
I posted an strace of the command here but can't see anything that strucks me as the source of the problem. I also can't login using the console. Only logins as root succeed. In auth.log I can only see this:
Jul 22 16:57:17 localhost login: pam_unix(login:session): session opened for user crito by LOGIN(uid=0)
Jul 22 16:57:17 localhost login: LOGIN ON tty2 BY crito
Jul 22 16:57:17 localhost login: pam_unix(login:session): session closed for user crito
I checked the permissions, and it seems good to me:
[root@bombadil ~]# ls -laR /home
/home/:
total 0
drwxr-xr-x 1 root root 10 Jul 21 14:48 .
drwx------ 1 root root 132 Jul 21 14:28 ..
drwx------ 1 crito users 64 Jul 21 14:48 crito
/home/crito:
total 12
drwx------ 1 crito users 64 Jul 21 14:48 .
drwxr-xr-x 1 root root 10 Jul 21 14:48 ..
-rw-r--r-- 1 crito users 21 Jul 10 23:34 .bash_logout
-rw-r--r-- 1 crito users 57 Jul 10 23:34 .bash_profile
-rw-r--r-- 1 crito users 141 Jul 10 23:34 .bashrc
I use btrfs subvolumes:
[root@bombadil ~]# btrfs subvol list -p /
ID 256 parent 5 top level 5 path __active
ID 258 parent 256 top level 5 path __active/home
ID 259 parent 256 top level 5 path __active/usr
ID 260 parent 256 top level 5 path __active/var
And I mount root using this entry in /etc/fstab:
/dev/mapper/root / btrfs defaults,noatime,subvol=__active 0 0
I haven't touched inittab or anything. Its a very basic and fresh arch install. Those are the relevant steps I did in creating the installation:
mkfs.btrfs -L btrfs-root /dev/mapper/root
mount -o defaults,noatime /dev/mapper/root /broot/
btrfs subvolume create /broot/__active
btrfs subvolume create /broot/__active/home
btrfs subvolume create /broot/__active/usr
btrfs subvolume create /broot/__active/var
mount -o defaults,noatime,subvol=__active /dev/mapper/root /mnt
chmod 0755 /mnt/home
chmod 0755 /mnt/usr
chmod 0755 /mnt/var
pacman -r /mnt -Sy base base-devel btrfs-progs grub2-bios wireless_tools vim-runtime --ignore grub
Any pointer into the right direction would be appreciated.
Offline
You need to mount the real root and chmod the directory for the subvolume.
The wiki says the same iirc. I have a very similar setup and didn't need to chmod anything. Subvolumes were created with 0755 rights by default for me.
Offline
Thanx a lot. Running a chmod 0755 /__active did the trick.
Offline