by spender » Fri Feb 14, 2003 8:22 am
This has been explained several times before. "w" uses /proc to generate its output, and the /proc restrictions keep it from getting that info. "who" uses /var/log/wtmp and /var/run/utmp. If you want to restrict who as well, make /var/log/wtmp and /var/run/utmp sgid utmp and remove their world-readable permission, and make who sgid utmp.
-Brad