Message "Failed to start User Manager" is seen in the journal and corresponding "user@<UID>.service" unit is marked as Failed

Solution Verified - Updated -

Issue

  • Upon logging into the system as a user or having a cron execute, the following message is seen in the journal

    [...] systemd[3994]: pam_unix(systemd-user:session): session opened for user rmetrich by (uid=0)
    [...] systemd[3994]: Failed to fully start up daemon: Permission denied
    [...] systemd[3995]: pam_unix(systemd-user:session): session closed for user rmetrich
    [...] systemd[1]: user@101166.service: Failed with result 'protocol'.
    [...] systemd[1]: Failed to start User Manager for UID 101166.
    [...] systemd[1]: Stopping /run/user/101166 mount wrapper...
    [...] sshd[3991]: pam_systemd(sshd:session): Failed to create session: Start job for unit user@101166.service failed with 'failed'
    
  • The user@<UID>.service unit is listed as failed

    # systemctl --failed 
    UNIT                LOAD   ACTIVE SUB    DESCRIPTION                
    ● user@101166.service loaded failed failed User Manager for UID 101166
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    1 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    

Environment

  • Red Hat Enterprise Linux 8
    • systemd
    • PAM sessions (sshd, crond, ...)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content