Operating System - HP-UX
1756552 Members
2738 Online
108848 Solutions
New Discussion юеВ

Linux NFS Shard mounted on HP-UX chown fails

 
SOLVED
Go to solution
Smucker
Regular Advisor

Linux NFS Shard mounted on HP-UX chown fails

I have a linux nfs share mounted on hp-ux. A non-root user cannot change a file that they own
they receice "Not Owner" when doing a chgrp or chown.

HPUX (Mount - etc/fstab)
:/jms_env /jms_env nfs hard,intr,timeo=14,rsize=8192,wsize=8192 1 2

LINUX NFS Server (/etc/exports)
/jmsenv (rw,no_root_squash,sync,wdelay,fsid=2003,mp=/jmsenv)


I tried execute the following on HP-UX serprovgrp -g CHOWN but it did not help

Any ideas
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Linux NFS Shard mounted on HP-UX chown fails

>I tried execute the following on HP-UX

You would need to do something similar on the linux system.
Smucker
Regular Advisor

Re: Linux NFS Shard mounted on HP-UX chown fails

I do not think this is the case

on HP-UX as user=Ballen Group=user I touch a file call testfile

I then execute chgrp or chown to group oaa and it fails

If I add the group oaa to the user he can then chgrp of the file. if I try a different group it fails

#chgrp pay testfile2
testfile2: Not owner


the file permissions are 666 ....

Dennis Handly
Acclaimed Contributor
Solution

Re: Linux NFS Shard mounted on HP-UX chown fails

>I do not think this is the case

I suggest you try this on linux, that's the server OS that defines the rules. Another linux thread mentioned that the serprovgrp/CHOWN defaults were different than HP-UX.
Smucker
Regular Advisor

Re: Linux NFS Shard mounted on HP-UX chown fails

Linux does indeed have the same privledges as HP-UX. However, HP-UX has setprivgrp command that bypasses the check for chown by default.

Linux does had setcap but it is not a global setting as in HP-UX.

Thanks for the suggestion