Comment by ~sunderland93 on ~kennylevinsen/greetd
This is a postsinstall script from greetd deb-package
Comment by ~sunderland93 on ~kennylevinsen/greetd
I think I did it wrong (I took the script from SDDM as a sample)
if ! getent group greeter >/dev/null; then addgroup --system greeter fi # creating greeter user if he isn't already there if ! getent passwd greeter >/dev/null; then adduser --system --ingroup greeter --home /var/lib/greeter greeter usermod -c "minimal and flexible login manager daemon" greeter usermod -d "/var/lib/greeter" greeter usermod -g "greeter" greeter usermod -s "/bin/false" greeter fi if [ ! -e /var/lib/greeter ]; then # If greeter was purged while running, the home dir gets removed but the user # remains (as deluser refuses to delete a user that's in use). mkdir -p /var/lib/greeter fi if [ -d /var/lib/greeter ]; then # There has been a -R in version prior to 0.19 # but this opens up symlink attacks. Remove it. chown greeter:greeter /var/lib/greeter chmod 0750 /var/lib/greeter fi`
On Thu, 2022-06-16 at 19:28 +0000, ~sunderland93 wrote:
Greetd is fails to start on Ubuntu 22.04 due to pam_unix error:
`Jun 16 22:41:28 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:28 acer greetd[1011]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu))
Did you create the user for the greeter configured in your configuration file ("greeter" by default)?
Ticket created by ~sunderland93 on ~kennylevinsen/greetd
Greetd is fails to start on Ubuntu 22.04 due to pam_unix error:
Jun 16 22:41:28 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:28 acer greetd[1011]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu)) Jun 16 22:41:28 acer greetd[1009]: unable to start greeter: session start failed: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:28 acer greetd[1011]: error: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:28 acer systemd[1]: greetd.service: Main process exited, code=exited, status=1/FAILURE Jun 16 22:41:28 acer systemd[1]: greetd.service: Failed with result 'exit-code'. Jun 16 22:41:29 acer systemd[1]: greetd.service: Scheduled restart job, restart counter is at 1. Jun 16 22:41:29 acer systemd[1]: Stopped Greeter daemon. Jun 16 22:41:29 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:29 acer greetd[1050]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu)) Jun 16 22:41:29 acer greetd[1050]: error: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:29 acer greetd[1049]: unable to start greeter: session start failed: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:29 acer systemd[1]: greetd.service: Main process exited, code=exited, status=1/FAILURE Jun 16 22:41:29 acer systemd[1]: greetd.service: Failed with result 'exit-code'. Jun 16 22:41:30 acer systemd[1]: greetd.service: Scheduled restart job, restart counter is at 2. Jun 16 22:41:30 acer systemd[1]: Stopped Greeter daemon. Jun 16 22:41:30 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:30 acer greetd[1069]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu)) Jun 16 22:41:30 acer greetd[1069]: error: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:30 acer greetd[1068]: unable to start greeter: session start failed: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:31 acer greetd[1068]: error: unable to reset VT: terminal: unable to wait for activation: EINTR: Interrupted system call Jun 16 22:41:31 acer systemd[1]: greetd.service: Deactivated successfully. Jun 16 22:41:32 acer systemd[1]: greetd.service: Scheduled restart job, restart counter is at 3. Jun 16 22:41:32 acer systemd[1]: Stopped Greeter daemon. Jun 16 22:41:32 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:32 acer greetd[1089]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu)) Jun 16 22:41:32 acer greetd[1089]: error: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:32 acer greetd[1088]: unable to start greeter: session start failed: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:32 acer systemd[1]: greetd.service: Main process exited, code=exited, status=1/FAILURE Jun 16 22:41:32 acer systemd[1]: greetd.service: Failed with result 'exit-code'. Jun 16 22:41:33 acer systemd[1]: greetd.service: Scheduled restart job, restart counter is at 4. Jun 16 22:41:33 acer systemd[1]: Stopped Greeter daemon. Jun 16 22:41:33 acer systemd[1]: Started Greeter daemon. Jun 16 22:41:33 acer greetd[1189]: pam_unix(greetd:account): could not identify user (from getpwnam(ubuntu)) Jun 16 22:41:33 acer greetd[1189]: error: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:33 acer greetd[1188]: unable to start greeter: session start failed: authentication error: pam_acct_mgmt: AUTH_ERR Jun 16 22:41:33 acer greetd[1188]: error: unable to reset VT: terminal: unable to wait for activation: EINTR: Interrupted system call Jun 16 22:41:33 acer systemd[1]: greetd.service: Deactivated successfully. Jun 16 22:41:34 acer systemd[1]: greetd.service: Scheduled restart job, restart counter is at 5. Jun 16 22:41:34 acer systemd[1]: Stopped Greeter daemon. Jun 16 22:41:34 acer systemd[1]: greetd.service: Start request repeated too quickly. Jun 16 22:41:34 acer systemd[1]: greetd.service: Failed with result 'start-limit-hit'. Jun 16 22:41:34 acer systemd[1]: Failed to start Greeter daemon.