HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to resrtict users from executing chown command...
Operating System - HP-UX
1833788
Members
2664
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-20-2001 07:59 PM
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2001 10:38 PM
02-20-2001 10:38 PM
Re: How to resrtict users from executing chown command?
Hi,
You can set ACL on the chown binary so that only userids in the ACL listing can execute the chown command.
ACL is available on HFS and JFS 3.3. man chacl on the syntax of setting it. Example:
# chacl '(abc.%,r-x)(def.%,r-x)' `which chown`
i.e. Only the users abc and def can execute the chown command.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
You can set ACL on the chown binary so that only userids in the ACL listing can execute the chown command.
ACL is available on HFS and JFS 3.3. man chacl on the syntax of setting it. Example:
# chacl '(abc.%,r-x)(def.%,r-x)' `which chown`
i.e. Only the users abc and def can execute the chown command.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2001 07:47 AM
03-06-2001 07:47 AM
Re: How to resrtict users from executing chown command?
This could help:
chmod 700 /bin/chown
Or set up a new group then change the group owner to the new one, then add the new group to the users you want to restrict chown.
Marco
chmod 700 /bin/chown
Or set up a new group then change the group owner to the new one, then add the new group to the users you want to restrict chown.
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2001 09:11 AM
03-06-2001 09:11 AM
Re: How to resrtict users from executing chown command?
Hi
Change permission on /sbin/chown to 554. It will allow only root (members on bin group) to execute this command.
# chmod 554 /sbin/chown
# ls -l /sbin/chown
r-xr-xr-- 1 bin bin 200704 Nov 7 1997 /sbin/chown.
Thanks.
Prashant Deshpande.
Change permission on /sbin/chown to 554. It will allow only root (members on bin group) to execute this command.
# chmod 554 /sbin/chown
# ls -l /sbin/chown
r-xr-xr-- 1 bin bin 200704 Nov 7 1997 /sbin/chown.
Thanks.
Prashant Deshpande.
Take it as it comes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2001 10:01 AM
03-06-2001 10:01 AM
Solution
Hi
CHOWN is a global privilege (see setprivgrp (1m)) test to be sure this is what you want.
# getprivgroup
global privilege: chown
# echo ?n > /etc/privgroup
# chmod 400 /etc/privgroup
To add CHOWN and other global comands for specific groups see the following example:
Example:
To add CHOWN and MLOCK for dba group or users.
echo dba CHOWN MLOCK >> /etc/privgroup
# sbin/init.d/set_prvgrp start
# getprivgrp
global privileges:
dba: MLOCK CHOWN
HTH
Peggy
CHOWN is a global privilege (see setprivgrp (1m)) test to be sure this is what you want.
# getprivgroup
global privilege: chown
# echo ?n > /etc/privgroup
# chmod 400 /etc/privgroup
To add CHOWN and other global comands for specific groups see the following example:
Example:
To add CHOWN and MLOCK for dba group or users.
echo dba CHOWN MLOCK >> /etc/privgroup
# sbin/init.d/set_prvgrp start
# getprivgrp
global privileges:
dba: MLOCK CHOWN
HTH
Peggy
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP