On Mon, May 22, 2017 at 11:16 AM, Raffaele Belardi <raffaele.bela...@st.com> wrote: > I'm unable to start the gdm service on a recently installed gnome > desktop (~x86): the service continuously fails and restarts with the > errors below. If I disable the service and login into a text console, > startx works fine but the Gnome session misses some features (e.g. > screen lock). I enabled debug logging on gdm but nothing significant > appears. > > Any suggestions? > > thanks, > > raffaele > > > systemd[356]: user@32.service: Failed at step PAM spawning > /usr/lib/systemd/systemd: Operation not permitted > systemd[1]: Failed to start User Manager for UID 32. > gdm-launch-environment][310]: pam_systemd(gdm-launch- > environment:session): Failed to create session: Start job for unit user > @32.service failed with 'failed' > systemd[1]: user@32.service: Unit entered failed state. > systemd[1]: user@32.service: Failed with result 'protocol'. > > ... > > /usr/libexec/gdm-x-session[359]: Activated service > 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 > exited with stat > /usr/libexec/gdm-x-session[359]: Unable to register display with > display manager > > # grep 32 /etc/passwd > gdm:x:32:32:GDM:/var/lib/gdm:/bin/false > > # eselect profile list > Available profile symlink targets: > [1] default/linux/x86/13.0 > [2] default/linux/x86/13.0/selinux > [3] default/linux/x86/13.0/desktop > [4] default/linux/x86/13.0/desktop/gnome > [5] default/linux/x86/13.0/desktop/gnome/systemd * > [6] default/linux/x86/13.0/desktop/plasma > [7] default/linux/x86/13.0/desktop/plasma/systemd > [8] default/linux/x86/13.0/developer > [9] default/linux/x86/13.0/systemd > [10] hardened/linux/x86 > [11] hardened/linux/x86/selinux > [12] hardened/linux/musl/x86 > [13] default/linux/uclibc/x86 > [14] hardened/linux/uclibc/x86 >
A Google search found this systemd issue: https://github.com/systemd/systemd/issues/4342 Quote: @poettering I see I left no account modules in the bare-bones PAM config. Maybe it is pam_acct_mgmt failing then? @yuwata what happens if you add account required pam_unix.so ? @fsateler Thanks. By adding the line, user sessions successfully start without the error messages. Do you think the line should be added to the minimal PAM file? See if that helps.