{
    "mode": "man",
    "parameter": "systemd-logind.service",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/systemd-logind.service/8/json",
    "generated": "2026-05-30T06:07:36Z",
    "synopsis": "systemd-logind.service\n/lib/systemd/systemd-logind",
    "sections": {
        "NAME": {
            "content": "systemd-logind.service, systemd-logind - Login manager\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-logind.service\n\n/lib/systemd/systemd-logind\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "systemd-logind is a system service that manages user logins. It is responsible for:\n\n•   Keeping track of users and sessions, their processes and their idle state. This is\nimplemented by allocating a systemd slice unit for each user below user.slice, and a\nscope unit below it for each concurrent session of a user. Also, a per-user service\nmanager is started as system service instance of user@.service for each logged in user.\n\n•   Generating and managing session IDs. If auditing is available and an audit session ID is\nalready set for a session, then this ID is reused as the session ID. Otherwise, an\nindependent session counter is used.\n\n•   Providing polkit[1]-based access for users for operations such as system shutdown or\nsleep\n\n•   Implementing a shutdown/sleep inhibition logic for applications\n\n•   Handling of power/sleep hardware keys\n\n•   Multi-seat management\n\n•   Session switch management\n\n•   Device access management for users\n\n•   Automatic spawning of text logins (gettys) on virtual console activation and user runtime\ndirectory management\n\nUser sessions are registered with logind via the pamsystemd(8) PAM module.\n\nSee logind.conf(5) for information about the configuration of this service.\n\nSee sd-login(3) for information about the basic concepts of logind such as users, sessions\nand seats.\n\nSee org.freedesktop.login1(5) and org.freedesktop.LogControl1(5) for information about the\nD-Bus APIs systemd-logind provides.\n\nFor more information on the inhibition logic see the Inhibitor Lock Developer\nDocumentation[2].\n\nIf you are interested in writing a display manager that makes use of logind, please have look\nat Writing Display Managers[3]. If you are interested in writing a desktop environment that\nmakes use of logind, please have look at Writing Desktop Environments[4].\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd-user-sessions.service(8), loginctl(1), logind.conf(5), pamsystemd(8),\nsd-login(3)\n",
            "subsections": []
        },
        "NOTES": {
            "content": "1. polkit\nhttps://www.freedesktop.org/wiki/Software/polkit\n\n2. Inhibitor Lock Developer Documentation\nhttps://www.freedesktop.org/wiki/Software/systemd/inhibit\n\n3. Writing Display Managers\nhttps://www.freedesktop.org/wiki/Software/systemd/writing-display-managers\n\n4. Writing Desktop Environments\nhttps://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments\n\n\n\nsystemd 249                                                                SYSTEMD-LOGIND.SERVICE(8)",
            "subsections": []
        }
    },
    "summary": "systemd-logind.service, systemd-logind - Login manager",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd-user-sessions.service",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd-user-sessions.service/8/json"
        },
        {
            "name": "loginctl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/loginctl/1/json"
        },
        {
            "name": "logind.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/logind.conf/5/json"
        },
        {
            "name": "pamsystemd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pamsystemd/8/json"
        },
        {
            "name": "sd-login",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/sd-login/3/json"
        }
    ]
}