Hello everyone. So I’m having issues logging into any account that isn’t root. On the login screen, I input my username and password, and it just kicks me back to the login page unless I sign in as root. I checked my etc/passwd
file and my user account is still there, this is the output, so I know the account still exists and the home directory is fine:
sinkou:x:1000:1000:patrick:/home/sinkou:/bin/bash
I also looked at other entries to see what is happening:
journalctl -b
Nov 06 08:41:56 lotus audit[839]: USER_AUTH pid=839 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication
grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct=“sinkou”
exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus audit[839]: USER_ACCT pid=839 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus kernel: audit: type=1100 audit(1604670116.178:48): pid=839 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus kernel: audit: type=1101 audit(1604670116.178:49): pid=839 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus audit[839]: CRED_ACQ pid=839 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus lightdm[839]: pam_unix(lightdm:session): session opened for user sinkou(uid=1000) by (uid=0)
Nov 06 08:41:56 lotus kernel: audit: type=1103 audit(1604670116.218:52): pid=839 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock,pam_gnome_keyring acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus systemd-logind[448]: New session 2 of user sinkou.
Nov 06 08:41:56 lotus audit[845]: USER_ACCT pid=845 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct=“sinkou” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success’
Nov 06 08:41:56 lotus audit[845]: CRED_ACQ pid=845 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:setcred grantors=? acct=“sinkou” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed’
Nov 06 08:41:56 lotus systemd[845]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[sinkou] ruser=[] rhost=[]
Nov 06 08:41:56 lotus systemd[845]: pam_unix(systemd-user:session): session opened for user sinkou(uid=1000) by (uid=0)
Nov 06 08:41:56 lotus kernel: audit: type=1101 audit(1604670116.234:55): pid=845 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:accounting grantors=pam_access,pam_permit,pam_time acct=“sinkou” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success’
Nov 06 08:41:56 lotus kernel: audit: type=1103 audit(1604670116.234:56): pid=845 uid=0 auid=4294967295 ses=4294967295 msg=‘op=PAM:setcred grantors=? acct=“sinkou” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed’
Nov 06 08:41:56 lotus audit[845]: USER_START pid=845 uid=0 auid=1000 ses=3 msg=‘op=PAM:session_open grantors=pam_loginuid,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct=“sinkou” exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success’
Nov 06 08:41:56 lotus systemd[1]: Started Session 2 of user sinkou.
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Desktop
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Downloads
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Templates
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Public
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Documents
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Music
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Pictures
Nov 06 08:41:56 lotus xdg-user-dirs-update[852]: Can’t create dir /home/sinkou/Videos
Nov 06 08:41:56 lotus audit[839]: USER_START pid=839 uid=0 auid=1000 ses=2 msg=‘op=PAM:session_open grantors=pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env,pam_gnome_keyring acct=“sinkou” exe="/usr/bin/lightdm" hostname=? addr=? terminal=:0 res=success’
Nov 06 08:41:56 lotus lightdm[839]: Error writing X authority: Failed to open X authority /home/sinkou/.Xauthority: Permission denied
Nov 06 08:42:08 lotus systemd[846]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[sinkou] ruser=[] rhost=[]
I’m not sure what’s going on, because yesterday everything was okay. I see the “Can’t create dir /*” stuff but I’m not sure how to interpret that so I can fix it.
As for the mounting issue, I have mounted my /dev/sda1
partition to a directory /data
- today, Manjaro has decided to unmount this permanently. Furthermore, it has mounted one of my M.2 drive partitions to /data
instead. I am able to remount /dev/sda1
to a different directory, say /data2
for example, but on reboot, it just unmounts itself again. My drive is an ext4 file system if that matters. I’d rather not create a new file system over it in the hopes that I can still have access to the ~50GB of actual important data I have on that drive. I had moved my user /home
directory in /data
so perhaps fixing the mounting issue will fix the user issue as well, but I also ran a usermod -m -d /home/sinkou sinkou
to move it back, just in case, and that didn’t seem to work either. One last piece of info is that df
does not seem to recognize dev/sda1
though I’m assuming that’s because it’s not currently mounted. Here’s the lsblk
if that helps too:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part
nvme0n1 259:0 0 232.9G 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /boot/efi
└─nvme0n1p2 259:2 0 232.6G 0 part /data