Post History
Can I disable the ability of regular users to enable lingering in loginctl? By default every user on a systemd enabled Linux can run loginctl --enable-linger and have a personal systemd instance s...
#3: Post edited
- Can I disable the ability of regular users to enable lingering in loginctl?
- By default every user on a systemd enabled Linux can run `loginctl --enable-linger` and have a personal systemd instance started that starts services in userspace after reboots. I have the need to disable this capability.
- [`man logind.conf`](https://www.man7.org/linux/man-pages/man5/logind.conf.5.html) does not show anything helpful. Every search term I can think of only leads to instructions on how to use it.
The only thing I can currently think of would be to clean the folder `/var/lib/systemd/linger/` on shutdown, so they are gone when the system starts up next time. But that seems rather hacky. Is there any regular option to disable lingering?
- Can I disable the ability of regular users to enable lingering in loginctl?
- By default every user on a systemd enabled Linux can run `loginctl --enable-linger` and have a personal systemd instance started that starts services in userspace after reboots. I have the need to disable this capability.
- [`man logind.conf`](https://www.man7.org/linux/man-pages/man5/logind.conf.5.html) does not show anything helpful. Every search term I can think of only leads to instructions on how to use it.
- In a couple of places it has been suggested to clean the folder `/var/lib/systemd/linger/` on shutdown, so they are gone when the system starts up next time. But that seems rather hacky. Is there any regular option to disable lingering?
#2: Post edited
- Can I disable the ability of regular users to enable lingering in loginctl?
By default every user on a systemd enabld Linux can run `loginctl --enable-linger` and have a personal systemd instance started that starts services in userspace after reboots. I have the need to disable this capability.- [`man logind.conf`](https://www.man7.org/linux/man-pages/man5/logind.conf.5.html) does not show anything helpful. Every search term I can think of only leads to instructions on how to use it.
- The only thing I can currently think of would be to clean the folder `/var/lib/systemd/linger/` on shutdown, so they are gone when the system starts up next time. But that seems rather hacky. Is there any regular option to disable lingering?
- Can I disable the ability of regular users to enable lingering in loginctl?
- By default every user on a systemd enabled Linux can run `loginctl --enable-linger` and have a personal systemd instance started that starts services in userspace after reboots. I have the need to disable this capability.
- [`man logind.conf`](https://www.man7.org/linux/man-pages/man5/logind.conf.5.html) does not show anything helpful. Every search term I can think of only leads to instructions on how to use it.
- The only thing I can currently think of would be to clean the folder `/var/lib/systemd/linger/` on shutdown, so they are gone when the system starts up next time. But that seems rather hacky. Is there any regular option to disable lingering?
#1: Initial revision
Disable ability of users to enable lingering in systemd
Can I disable the ability of regular users to enable lingering in loginctl? By default every user on a systemd enabld Linux can run `loginctl --enable-linger` and have a personal systemd instance started that starts services in userspace after reboots. I have the need to disable this capability. [`man logind.conf`](https://www.man7.org/linux/man-pages/man5/logind.conf.5.html) does not show anything helpful. Every search term I can think of only leads to instructions on how to use it. The only thing I can currently think of would be to clean the folder `/var/lib/systemd/linger/` on shutdown, so they are gone when the system starts up next time. But that seems rather hacky. Is there any regular option to disable lingering?