Operating System - HP-UX
1847702 Members
5587 Online
110265 Solutions
New Discussion

Re: How to restrict users from executing chown command?

 
suranji
Advisor

How to restrict users from executing chown command?

How to restrict users from executing chown command?
suranji
2 REPLIES 2
Philip Chan_1
Respected Contributor

Re: How to restrict users from executing chown command?

What about

chacl "%.users-x" /usr/bin/chown

that should take away execution rights from all users listed in the users group.
Dan Hetzel
Honored Contributor

Re: How to restrict users from executing chown command?

Hi,

CHOWN is one of the privileges that can be granted or denied with 'setprivgrp'.

Providing your users are established in a group (in /etc/group), you could use the commands
setprivgrp groupname [privileges]
or
setprivgrp -n [privileges]

See manpages for setprivgrp(1M) for details.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com