[systemd-devel] grant users access to certain services only

Daurnimator quae at daurnimator.com
Fri Aug 21 03:25:56 PDT 2015


On 21 August 2015 at 19:57, Dominick Grift <dac.override at gmail.com> wrote:
> i think it kind of sucks that systemctl --user list-units can be used to
> determine who is currently logged in.

You can see with `loginctl list-users` too

I once tried to prevent getting a list of users, but it's hard... I locked out:
  - `w` and `who` (uses /var/run/utmp; do chmod o-r)
  - `grep -h '^Uid:' /proc/*/status | sort -u` (prevent with procfs
option hidepid=2)
  - ls /run/user (do chmod o-r)


More information about the systemd-devel mailing list