You are not logged in.

#1 2020-06-30 00:03:19

ad4ms3
Member
Registered: 2018-01-19
Posts: 53

[SOLVED] Unable to log in as a new user ?Permission issues

Hi,

For the first time I have managed to install Arch in the UEFI mode following wiki. Everything works perfectly fine apart... being unable to log in with my daughter's credentials. I set her a new account and every time I try to log to her account, I can't.

Journalctl:

un 29 23:01:49 archlinux systemd[1398]: Startup finished in 47ms.
Jun 29 23:01:49 archlinux systemd[1]: Started User Manager for UID 1001.
Jun 29 23:01:49 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@1001 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 29 23:01:49 archlinux systemd[1]: Started Session 11 of user justyna.
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Jun 29 23:01:49 archlinux audit[1396]: USER_START pid=1396 uid=0 auid=1001 ses=11 msg='op=PAM:session_open grantors=pam_keyinit,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct="justyna" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=:0 res=success'
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_kwallet5-kwalletd: user home folder does not exist
Jun 29 23:01:49 archlinux sddm-helper[1396]: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_kwallet5(sddm:session): pam_kwallet5: Fail into creating the hash
Jun 29 23:01:49 archlinux sddm-helper[1404]: chdir( /home/justyna ) failed for user:  "justyna"
Jun 29 23:01:49 archlinux sddm-helper[1404]: verify directory exist and has sufficient permissions
Jun 29 23:01:49 archlinux audit[1396]: USER_END pid=1396 uid=0 auid=1001 ses=11 msg='op=PAM:session_close grantors=pam_keyinit,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct="justyna" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=:0 res=success'
Jun 29 23:01:49 archlinux audit[1396]: CRED_DISP pid=1396 uid=0 auid=1001 ses=11 msg='op=PAM:setcred grantors=pam_tally2,pam_shells,pam_unix,pam_permit acct="justyna" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=:0 res=success'
Jun 29 23:01:49 archlinux sddm[1302]: Session started
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_unix(sddm:session): session closed for user justyna
Jun 29 23:01:49 archlinux sddm-helper[1396]: [PAM] Closing session
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_close_session
Jun 29 23:01:49 archlinux sddm-helper[1396]: [PAM] Ended.
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jun 29 23:01:49 archlinux sddm[1302]: Auth: sddm-helper exited with 3
Jun 29 23:01:49 archlinux sddm[1302]: Socket server stopping...
Jun 29 23:01:49 archlinux sddm[1302]: Socket server stopped.
Jun 29 23:01:49 archlinux sddm[1302]: Display server stopping...
Jun 29 23:01:49 archlinux systemd-logind[344]: Session 11 logged out. Waiting for processes to exit.
Jun 29 23:01:49 archlinux systemd[1]: session-11.scope: Succeeded.
Jun 29 23:01:49 archlinux systemd-logind[344]: Removed session 11.
Jun 29 23:01:49 archlinux sddm[1302]: Display server stopped.
Jun 29 23:01:49 archlinux sddm[1302]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
Jun 29 23:01:49 archlinux sddm[1302]: Removing display ":0" ...
Jun 29 23:01:49 archlinux sddm[1302]: Adding new display on vt 1 ...
Jun 29 23:01:49 archlinux sddm[1302]: Loading theme configuration from ""
Jun 29 23:01:49 archlinux sddm[1302]: Display server starting...
Jun 29 23:01:49 archlinux sddm[1302]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{e86cb67c-8d30-491b-92ca-63727e099075} -background none -noreset -displayfd 18 -seat seat0 vt1
Jun 29 23:01:50 archlinux sddm[1302]: Setting default cursor
Jun 29 23:01:50 archlinux sddm[1302]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Jun 29 23:01:50 archlinux sddm[1302]: Display server started.
Jun 29 23:01:50 archlinux sddm[1302]: Socket server starting...
Jun 29 23:01:50 archlinux sddm[1302]: Socket server started.
Jun 29 23:01:50 archlinux sddm[1302]: Loading theme configuration from ""
Jun 29 23:01:50 archlinux sddm[1302]: Greeter starting...
Jun 29 23:01:50 archlinux sddm[1302]: Adding cookie to "/var/run/sddm/{e86cb67c-8d30-491b-92ca-63727e099075}"
Jun 29 23:01:50 archlinux sddm-helper[1418]: [PAM] Starting...
Jun 29 23:01:50 archlinux audit[1418]: USER_AUTH pid=1418 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_permit acct="sddm" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=? res=success'
Jun 29 23:01:50 archlinux audit[1418]: USER_ACCT pid=1418 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_permit acct="sddm" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=? res=success'
Jun 29 23:01:50 archlinux audit[1418]: CRED_ACQ pid=1418 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_permit acct="sddm" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=? res=success'
Jun 29 23:01:50 archlinux sddm-helper[1418]: [PAM] Authenticating...
Jun 29 23:01:50 archlinux sddm-helper[1418]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Jun 29 23:01:50 archlinux sddm-helper[1418]: [PAM] returning.
Jun 29 23:01:50 archlinux systemd-logind[344]: New session c6 of user sddm.

So, it works for me, but I does not for her...

I know, that problem lays here:

Jun 29 23:01:49 archlinux sddm-helper[1404]: chdir( /home/justyna ) failed for user:  "justyna"
Jun 29 23:01:49 archlinux sddm-helper[1404]: verify directory exist and has sufficient permissions
Jun 29 23:01:49 archlinux audit[1396]: USER_END pid=1396 uid=0 auid=1001 ses=11 msg='op=PAM:session_close grantors=pam_keyinit,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct="justyna" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=:0 res=success'
Jun 29 23:01:49 archlinux audit[1396]: CRED_DISP pid=1396 uid=0 auid=1001 ses=11 msg='op=PAM:setcred grantors=pam_tally2,pam_shells,pam_unix,pam_permit acct="justyna" exe="/usr/lib/sddm/sddm-helper" hostname=? addr=? terminal=:0 res=success'
Jun 29 23:01:49 archlinux sddm[1302]: Session started
Jun 29 23:01:49 archlinux sddm-helper[1396]: pam_unix(sddm:session): session closed for user justyna
Jun 29 23:01:49 archlinux sddm-helper[1396]: [PAM] Closing session

ls -la:

drwxr-xr-x  5 ad4ms3  home       4096 Jun 29 23:02 .
drwxr-xr-x 17 root    root       4096 Jun 25 11:24 ..
drwxrwxr-x  2 justyna home       4096 Jun 29 21:41 Justyna
drwxrwx---  8 ad4ms3  home       4096 Jun 29 23:22 ad4ms3
[ad4ms3@archlinux ~]$ groups justyna
justyna
[ad4ms3@archlinux ~]$ groups ad4ms3
wheel sudo ad4ms3

fresh copy of .xinitrc present in the folder.

Every help appreciated. Thanks a lot.

Last edited by ad4ms3 (2020-06-30 08:05:59)

Offline

#2 2020-06-30 00:13:14

loqs
Member
Registered: 2014-03-06
Posts: 11,214

Re: [SOLVED] Unable to log in as a new user ?Permission issues

How did you create the home directory so it is owned by ad4ms:home instead of justyna root:users?

drwxr-xr-x  5 ad4ms3  home       4096 Jun 29 23:02 .

Edit:
The ls is for

ls -ls /home

Edit2:
What is the home group used for and why are ad4ms and justyna not members of it but /home is set to use that for group membership?
Edit3:
How did you create the user justnya?  What is the output of the following?

getent passwd justnya

justnya is not the same as Justnya on case sensitive filesystems.

Last edited by loqs (2020-06-30 00:41:42)

Offline

#3 2020-06-30 07:26:38

ad4ms3
Member
Registered: 2018-01-19
Posts: 53

Re: [SOLVED] Unable to log in as a new user ?Permission issues

I locked myself in sudoers and used arch-chroot to edit it. Meanwhile, I thought, while being logged in there, I would create the account for her.. I followed the wiki with this as well... but looks like not so well... My plan was, that she would have an access to some simple web browser so she can do her school work during lockdown and not waste time on internet. She will not have permissions to use sudo, nor mess with my /dev/sda4 (home partition for everyone) but only her own home folder. So, this was a story of 'home' group.

[ad4ms3@archlinux ~]$ ls -ls /home
total 15172
    4 drwxr-x--- 8 root   users      4096 Jun 29 23:47 Justyna
    0 lrwxrwxrwx 1 root   root         13 Jun 30 07:10 Jusyna -> /home/Justyna

The other files are journalctl.txt and lost+found folder

[ad4ms3@archlinux ~]$ getent passwd justyna
justyna:x:1001:1003::/home/Jusyna:/bin/bash

There is name misspelled, but I have already changed path home folder last night, and made sure that /bin/bash is correct. The output usermod -s /bin/bash justyna says 'no changes' I dont know does it still shows /home/Jusyna:/bin/bash..

Offline

#4 2020-06-30 07:38:38

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 875
Website

Re: [SOLVED] Unable to log in as a new user ?Permission issues

The home folder in question is named inconsistently. Sometimes with a capital, sometimes with a lower case J. Sometimes with and without a T. Home folders should also not be symlinks.
Decide on a single folder name and rename it and the passwd entry accordingly.

Offline

#5 2020-06-30 07:43:38

seth
Member
Registered: 2012-09-03
Posts: 15,713

Re: [SOLVED] Unable to log in as a new user ?Permission issues

Because you only changed the shell.
You want "usermod -dm …"

The $HOME permissions are off, only root has full access and if "justyna" isn't in the "users" group, she can't even enter it.
chown it to "justyna:users" and probably withdraw the group permissions.

Offline

#6 2020-06-30 08:02:28

ad4ms3
Member
Registered: 2018-01-19
Posts: 53

Re: [SOLVED] Unable to log in as a new user ?Permission issues

So, finally, it works. I chown it to justyna:users, sorted as above and it all works... now I must sort permissions for firefox, and other things... And that is why I rather have Arch, it does what you tell it to do... smile

Last edited by ad4ms3 (2020-06-30 08:05:17)

Offline

Board footer

Powered by FluxBB