Translated message

A translation of this page exists in English.

日志中出现 "Failed to start User Manager" 信息,相应的 "user@<UID>.service" 单元被标记为 Failed

Solution Verified - Updated -

Issue

  • 以一个用户身份登录或执行 cron 执后,在日志中出现以下信息

    [...] 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'
    
  • user@<UID>.service 单元被列为 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 会话 (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