Operating System - HP-UX
1836428 Members
3634 Online
110100 Solutions
New Discussion

How to resrtict users from executing chown command?

 
Upul Edirisinghe
Contributor

How to resrtict users from executing chown command?

I tried to restrict users in users group from executing chown command as follows.

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

But, I got the message
"chacl: file "/usr/bin/chown" : Function is not available (errno =251).

What has happened? How can I success?
2 REPLIES 2
Karthik_2
Regular Advisor

Re: How to resrtict users from executing chown command?

Hi,
Have you verified the file system in which you are issuing this command is HFS .I remember only the latest version of vxfs 3.3 supports acl.

Regards
Karthik
Its ALL in the MATRIX
Philip Chan_1
Respected Contributor

Re: How to resrtict users from executing chown command?

If your OS don't allow vxfs yet, you can use the following command to abandon usage on "chown"

setprivgrp -n CHOWN