- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- allow a non-root user to use fuser
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 10:43 AM
тАО05-05-2004 10:43 AM
allow a non-root user to use fuser
ls -al /etc/fuser /usr/sbin/fuser
lr-xr--r-T 1 root sys ... /etc/fuser -> /usr/sbin/fuser
-r-xr--r-- 1 bin bin ... /usr/sbin/fuser
NOTE: the "..." implies stuff not inluded from the ouput from ls
basically i have 2 questions
1) why does the link have the "lr-xr--r-T" permissions?
2) what are the impacts of running "chmod 555 /usr/sbin/fuser"?
a non-root user wants to run fuser but my concern is giving them the ability to kill proccesses that they do not own
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 11:00 AM
тАО05-05-2004 11:00 AM
Re: allow a non-root user to use fuser
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/
lsof can compiled so that non-root users can ONLY see their own open files. As far as I know lsof does not have any options like the '-k' option to fuser so they shouldn't be able to kill others processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 11:42 AM
тАО05-05-2004 11:42 AM
Re: allow a non-root user to use fuser
i guess i could reinstall it but i am interested in knowing the impact of tweaking the permissions on /usr/sbin/fuser ...my gut feeling is that it is OK to use 555 and that the user will not be able to kill PIDs owned by other users via the "-ku" option
also i think the link permissions are bogus/irrelevant ...and most likely relate to legacy HP-UX stuff (T => a "transition link")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 12:01 PM
тАО05-05-2004 12:01 PM
Re: allow a non-root user to use fuser
If you let other users execute it, they still won't be able to kill processes other than their own. If thats enough, it might help.
If they need to be able to kill all processes on say a filesystem they don't own, then the program would need suid capability. That would be like giving the users explosives and inviting them to blow up your system.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 12:47 PM
тАО05-05-2004 12:47 PM
Re: allow a non-root user to use fuser
i also have lsof but with the HASSECURITY defined users can only see their PIDs and not others for the specified file/directory
i generally do not use setuid scripts and often use sudo with user specific stuff in /etc/sudoers
i do have issues here with users wanting to be root ...its a constant battle where i must have already repeated/explained the concept of not needing to be root so many times
thx patrick and steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 01:35 PM
тАО05-05-2004 01:35 PM
Re: allow a non-root user to use fuser
But for safety, I would install sudo and then give wanna-be sysadmins a couple of commands with limited parameters.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2004 01:45 PM
тАО05-05-2004 01:45 PM
Re: allow a non-root user to use fuser
While non-root users will not be able to kill processes other than their own, by setting the execute bit for group and other, non-root users can gain knowledge about other processes so from that perspective it is a security risk though not a big one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 02:12 AM
тАО05-07-2004 02:12 AM
Re: allow a non-root user to use fuser
Yo could install and configure "sudo" to acomplish this. sudo uses a configuration file (sudoers) to tell explicity who can run which commands as root. Once configured, user could execute fuser command with something like:
sudo /usr/sbin/fuser
You even can configure the exact syntax de user can invoke, so you could for example deny a non.root user form using -k option for fuser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2004 03:00 AM
тАО05-07-2004 03:00 AM
Re: allow a non-root user to use fuser
Sudo:
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/sudo-1.6.7p5/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 01:16 AM
тАО05-14-2004 01:16 AM
Re: allow a non-root user to use fuser
the impact of 555 is a security issue.
add your non-root user to the /etc/sudoers
and
execute the command
sudo -u root (or superuser) command string
We have some scripts that sudo to a DBA account to build databases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2004 06:54 PM
тАО05-27-2004 06:54 PM
Re: allow a non-root user to use fuser
PHCO_29348 (11.00)
PHCO_29349 (11.11)
These change the permissions to 555. Even
though a non-root user can execute the
command with -k, they won't be able to kill
anything they don't have priviledge to kill.
No error will be reported in such a case,
though...they'll just get the prompt back,
but nothing will have been done.