Results 1 to 3 of 3
I am interested in knowing which binary runs the who and/or w command
I want to limit this to specific users on the system - so not just anyone can ...
- 07-20-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 1
which binary ? runs who and w command ?
I am interested in knowing which binary runs the who and/or w command
I want to limit this to specific users on the system - so not just anyone can run it
Any ideas?
- 07-20-2009 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
Welcome to the forums!
Check the coreutils package for the w and who commands.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 07-20-2009 #3Just Joined!
- Join Date
- Jul 2002
- Location
- Netherlands
- Posts
- 8
To find the binary you can do the following:
~$ which who
/usr/bin/who
~$ ls -l /usr/bin/who
-rwxr-xr-x 1 root root 33180 Apr 4 2008 /usr/bin/who
To restrict usage to a specific group you can issue:
~# chown root:<group_name> /usr/bin/who
# replace <group_name> with the group you want to allow running the command.
~# chmod 770 /usr/bin/who
You can do the same for the w command.
You will probably have to repeat this whenever the coreutils package is updated.


Reply With Quote