You are not logged in.
Every time I shutdown my computer it seems like my non-root user account is deleted, root logins in fine but its this account causing issues. I have to delete the user and readd the account everytime I restart my pc.
I created the user with:
useradd -m -G wheel ollie and my journalctl output is:
Oct 26 10:49:06 gamma login[339]: pam_tally(login:auth): pam_get_uid; no such user
Oct 26 10:49:09 gamma login[339]: pam_unix(login:auth): check pass; user unknown
Oct 26 10:49:09 gamma login[339]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost=
Oct 26 10:49:15 gamma login[339]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost= user=ollieAny suggested fixes or what the issue is being caused by would be appreciated
Update: I don't know what was happening or what I was doing, however, this is no longer an issue. Thanks for your help though
Last edited by 0llieC (2017-10-26 16:29:31)
Offline
What happens w/ /etc/passwd and /etc/shadow
1. after creating the account
2. after reboot
Check contents and timestamps, the mount path of /etc, whether the disk is writable and whether you can explicitly sync it.
Also see which UID that user gets.
Online
UPDATE: So the issue seems to arise after I change the shell to use fish, so after I preform:
usermod -s fish ollie the /etc/passwd before is:
root:x:0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:/usr/bin/nologin
daemon:x:2:2:daemon:/:/usr/bin/nologin
mail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin
ftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin
http:x:33:33:http:/srv/http:/usr/bin/nologin
nobody:x:99:99:nobody:/:/usr/bin/nologin
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/usr/bin/nologin
systemd-timesync:x:192:192:systemd-timesync:/:/usr/bin/nologin
systemd-network:x:193:193:systemd-network:/:/usr/bin/nologin
systemd-bus-proxy:x:194:194:systemd-bus-proxy:/:/usr/bin/nologin
systemd-resolve:x:195:195:systemd-resolve:/:/usr/bin/nologin
systemd-journal-remote:x:998:998:systemd Journal Remote:/:/sbin/nologin
uuidd:x:68:68::/:/sbin/nologin
systemd-journal-upload:x:996:996:systemd Journal Upload:/:/sbin/nologin
dbus:x:81:81::/:/sbin/nologin
systemd-coredump:x:997:997:systemd Core Dumper:/:/sbin/nologin
polkitd:x:102:102:Policy Kit Daemon:/:/usr/bin/nologin
rtkit:x:133:133:RealtimeKit:/proc:/bin/false
avahi:x:84:84:avahi:/:/bin/nologin
git:x:995:995:git daemon user:/:/usr/bin/git-shell
deluge:x:125:125:Deluge user:/srv/deluge:/bin/falseand after
root:x:0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:/usr/bin/nologin
daemon:x:2:2:daemon:/:/usr/bin/nologin
mail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin
ftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin
http:x:33:33:http:/srv/http:/usr/bin/nologin
nobody:x:99:99:nobody:/:/usr/bin/nologin
systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/usr/bin/nologin
systemd-timesync:x:192:192:systemd-timesync:/:/usr/bin/nologin
systemd-network:x:193:193:systemd-network:/:/usr/bin/nologin
systemd-bus-proxy:x:194:194:systemd-bus-proxy:/:/usr/bin/nologin
systemd-resolve:x:195:195:systemd-resolve:/:/usr/bin/nologin
systemd-journal-remote:x:998:998:systemd Journal Remote:/:/sbin/nologin
uuidd:x:68:68::/:/sbin/nologin
systemd-journal-upload:x:996:996:systemd Journal Upload:/:/sbin/nologin
dbus:x:81:81::/:/sbin/nologin
systemd-coredump:x:997:997:systemd Core Dumper:/:/sbin/nologin
polkitd:x:102:102:Policy Kit Daemon:/:/usr/bin/nologin
rtkit:x:133:133:RealtimeKit:/proc:/bin/false
avahi:x:84:84:avahi:/:/bin/nologin
git:x:995:995:git daemon user:/:/usr/bin/git-shell
deluge:x:125:125:Deluge user:/srv/deluge:/bin/false
ollie:x:1000:1000::/home/ollie:/bin/bashOffline
Rather looks like the file is one modification behind, ie. not written directly?
("ollie" is first absent and shows up with /bin/bash after setting the shell to fish)
=> filesystem and mount parameters?
Online