Sample Header Ad - 728x90

How can I prevent normal users from being able to look up other logged-in users?

0 votes
1 answer
119 views
For security and privacy reasons, I want to stop logging logins, as well as hiding information about currently logged-in users. So far, I tried revoking reading permissions to utmp and wtmp: sudo chmod o-r /var/run/utmp sudo chmod o-r /var/log/wtmp Which successfully stops w and who commands from working. They return without information about other users. However, as demonstrated in the answer in https://unix.stackexchange.com/questions/734857/other-users-are-logged-in-how-does-the-system-know-where-is-the-information-l it is still possible to access the information about other logged-in users via a DBus call to systemd-logind or elogind. How can I disable this specific DBus call? Or, in general, how can I prevent normal users from being able to look up other logged-in users?
Asked by kylex (25 rep)
Feb 9, 2023, 11:43 PM
Last activity: Sep 12, 2023, 11:50 AM