Operating System - HP-UX
1832984 Members
2835 Online
110048 Solutions
New Discussion

changing ownership and group membership

 
SOLVED
Go to solution
Ali Imran Abbas
Regular Advisor

changing ownership and group membership

I am trying to change the owner:group membership of the directory lcsdocuments to wcadmin:users but its giving me the following error:

chown wcadmin lcsdocuments
lcsdocuments: Not owner

I am logged in as root.
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: changing ownership and group membership

Is this a local filesystem or an NFS mounted filesystem? If it is NFS mounted, you probably do not have root privileges.
Paul Sperry
Honored Contributor

Re: changing ownership and group membership

Is the directory on a NFS mount?
If so change the owner as root on the NFS server it's self
Dennis Handly
Acclaimed Contributor

Re: changing ownership and group membership

>Patrick: Is this a local filesystem or an NFS mounted filesystem?

If the owner isn't root, you can simply su to that user and chown the file.
Provided the server doesn't prevent chown.