blog.up-link.ro
24Apr/100

FreeBSD: How To Prevent Users from seeing information about processes owned by others

FreeBSD has inbuilt security measure to disallow users to see processes that are being run under another UID to avoid information snooping. To enable this security feature via sysctl, type the following commands:

sysctl security.bsd.see_other_uids=0
sysctl security.bsd.see_other_gids=0

To enable this security feature on boot, add the following lines to /etc/sysctl.conf:

# Hide UID and GID from other users
security.bsd.see_other_gids=0
security.bsd.see_other_uids=0
Print This Post Print This Post