I don't want my users to see each others ip's/login info so I want to alter the output when they use the 'who' and 'w' commanda to hide that info - is there a way to do this?
|
feedback
|
|
Not globaly, no. You could however, restrict access to Things like:
etc. | |||
|
feedback
|
|
The information used by (Don't bother with removing the commands; if you leave However, this will not hide other users' login names. For this, you have to prevent ordinary users from seeing all processes – which can only be done with such kernel patches as grsec. (If you are going to grant access to random, untrusted people, grsec may be a good idea anyway.) Second, if you're going for privacy, you would have to prevent users from listing all system accounts; this cannot be done with traditional Unix | ||||
|
feedback
|
|
By default the
You could add this as an alias for w on user profiles (~/.bash_profile):
| |||||
feedback
|
|
You could think about giving your users a restricted shell and set up a special bin-directory for them, where you have wrapped or special versions of "w" and "who". See the bash manpage section RESTRICTED SHELL. | |||
|
feedback
|