Operating System - HP-UX
1829696 Members
2138 Online
109992 Solutions
New Discussion

URGENT: Unable to change ownership of file as root

 
Craig A. Sharp
Super Advisor

URGENT: Unable to change ownership of file as root

I have a file on an nfs mount that is UID nobody and group users. When I try to do a chown as root to change the owner to a different user, I get permission denied, not owner.

Any ideas?

Thanks,

Craig
6 REPLIES 6
Paul Sperry
Honored Contributor

Re: URGENT: Unable to change ownership of file as root

You need to change the permissions on the
Exported file system. That is you will need to log in as root on the system that has
the files locally.
Craig A. Sharp
Super Advisor

Re: URGENT: Unable to change ownership of file as root

I wish I could. It is a Compaq Storageworks NAS S1000. It runs Win2k and exports the directory to nfs.
Ken Hubnik_2
Honored Contributor

Re: URGENT: Unable to change ownership of file as root

The the Window nerds need to give you access to change the file.
Tom Jackson
Valued Contributor

Re: URGENT: Unable to change ownership of file as root

Hi Craig:

Sounds like the server has root access disabled for the file system. You either need to access the file from the server as root, enable root access for the NFS clients, or su to nobody, then access the file.

hth,

Tom
Steven E. Protter
Exalted Contributor

Re: URGENT: Unable to change ownership of file as root

somebody must be admin of the NAS.

Could the storage on that NAS actually be allocated to another Unix box and be exported by that?

I've used Win2K for years and was not aware I could export files as NFS.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Craig A. Sharp
Super Advisor

Re: URGENT: Unable to change ownership of file as root

Well, the NAS has a special version of 2k on it. It is actually using some version of CIFS to do the exports. I am not really sure how it all works.
Here is what I found so far. If I login as root, I can change the perms and the gid. Once I change the gid to users, I can logout and login as the user that I want as the UID and make the chown.

Kind of a round about way of doing it but it works. Hows that for strange.