Operating System - HP-UX
1832455 Members
3342 Online
110043 Solutions
New Discussion

Re: how to set rstchown = 0

 
SOLVED
Go to solution
Eric Zumwalt_2
Advisor

how to set rstchown = 0

I need to change the file ownership on my server or who has the rights to change.

I've read that you goto /etc/system:
and then set rstchown = 0

I goto my etc directory but there isn't a system file in there. What am I doing wrong?

Thanks,

Eric
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: how to set rstchown = 0

The /etc/system file is a Sun Solaris thing. HP does not use it as far as I know.

If you need to reset the global CHOWN privilege you can do:

# setprivgrp CHOWN

You can check global privileges by doing:

# getprivgrp
Sundar_7
Honored Contributor

Re: how to set rstchown = 0

Eric,

Patrick is right on. There is no such file used in HP-UX.

By default, a file/directory ownership can be changed by the current owner and by root.

But if you would not like the users to be able to change the ownership of the files/dirs they own, then you need to revoke CHOWN privileges.

# getprivgrp

this will tell you the current privileges.

You can change them using setprivgrp command.

If you would like to retain these settings across reboots, then you need to edit the file /etc/privgroup.

-- Sundar


-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Eric Zumwalt_2
Advisor

Re: how to set rstchown = 0

thanks for you help.