Operating System - HP-UX
1753501 Members
4772 Online
108794 Solutions
New Discussion юеВ

CHOWN 11.00 FAILS OVER NFS 11.31

 

CHOWN 11.00 FAILS OVER NFS 11.31

Hi.

I have an NFS exported on an 11.31 server. This NFS is mounted on an 11.0 server. Both sides haver read/write access, but a "chown" comand fails with ": Not owner" message.

Thank you for you help!.

Chao.
4 REPLIES 4
Paul Cross_1
Respected Contributor

Re: CHOWN 11.00 FAILS OVER NFS 11.31

How is it exported? Who owns the directory?

If the share is a root-owned directory and you want root to have privileges on the nfs client side, you will need to export it as such: root=.


HTH

-paul
Dennis Handly
Acclaimed Contributor

Re: CHOWN 11.00 FAILS OVER NFS 11.31

Who is the owner and who is trying to change it?
If not root, does that user have chown permission on the server? See setprivgrp(1M).

Re: CHOWN 11.00 FAILS OVER NFS 11.31

Hi.

Source server (11.31):

# more /etc/dfs/sharetab
/aixlis - nfs rw
# ls -ld /aixlis
drwxrwxrwx 4 tronweb usuarios 5120 Jul 25 15:41 /aixlis
# grep tronweb /etc/passwd
tronweb:G7xrai6lw9/QQ:203:200:,,,:/opt/tronweb:/usr/bin/sh
# uname -a
HP-UX mls02-ne B.11.31 U ia64 ******* unlimited-user license
#

Target server (11.11):

# ls -ld /mls02newaixlis
drwxrwxrwx 4 tronweb usuarios 5120 Jul 25 15:41 /mls02newaixlis
#
# more /etc/dfs/sharetab
/etc/dfs/sharetab: No such file or directory
# ls -ld /aixlis
/aixlis not found
# grep aixlis /etc/fstab
mls02pri:/aixlis /mls02newaixlis nfs rw,suid 0 0
# ls -ld /mls02newaixlis
drwxrwxrwx 4 tronweb usuarios 5120 Jul 25 15:41 /mls02newaixlis
# grep tronweb /etc/passwd
tronweb:G7xrai6lw9/QQ:203:200:,,,:/opt/tronweb:/usr/bin/sh
# uname -a
HP-UX mls06 B.11.11 U 9000/800 ***** unlimited-user license
#

The owner is the same (even the UID & GID).

Also, logged as root on the target system, Iam unable to made the chown command.

Thank you
Dennis Handly
Acclaimed Contributor

Re: CHOWN 11.00 FAILS OVER NFS 11.31

>Target server (11.11):

You mean client.

>The owner is the same (even the UID & GID).

The owner is the same only if the UID is the same.

>logged as root on the target system, I am unable to made the chown command.

Of course not, you have exported root as nobody. If you want root as root, you must export the file system with root=access_list:
http://docs.hp.com/en/B2355-60130/share_nfs.1M.html

That's why I asked if you tried using chown as tronweb. Of course root can always su to tronweb and do the chown.