forbidden chown/chmod on NFS volumes gives no error (RC=0)

General support questions
Post Reply
trukosh
Posts: 3
Joined: 2015/01/26 17:04:01

forbidden chown/chmod on NFS volumes gives no error (RC=0)

Post by trukosh » 2015/01/26 17:18:48

Hi,
we set up a new nfs-server with centos 7.
Clients mount volumes using nfs v3 (there are old clients ;-)).

On an nfs-volume:

Code: Select all

ls -al test.txt
-rwxrwxr-x 1 trukosh users 0 26. Jan 15:09 test.txt
chown otheruser test.txt
echo $?
0
ls -al test.txt
-rwxrwxr-x 1 trukosh users 0 26. Jan 15:09 test.txt
(No error, RC is 0.)

On a local volume:

Code: Select all

chown otheruser test.txt
chown: Ändern des Eigentümers von „test.txt“: Die Operation ist nicht erlaubt

I installed an nfs server on an ubuntu workstation. Can't reproduce this behaviour.
Is there anyone who can check that on his centos?
This is a real problem for us, cause thirdparty sw that uses chown / chmod don't work as expected.


Regards

Trukosh

lightman47
Posts: 1181
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: forbidden chown/chmod on NFS volumes gives no error (RC=

Post by lightman47 » 2015/01/26 18:42:14

You mention 'older clients' - perhaps earlier versions where the UIDs and GIDs were in the "500" series ??? Centos7 (and later versions of Fedora) are now creating those IDs in the "1000" range. I mention this because all the 'permission work' is actually done with the IDs, not the user names per se. If the numbers don't agree, well then they aren't the same user/group.

Could this be your issue? I had such a situation with my network and 'upgrading' the older Fedora machines to the new IDs was time consuming, but not really painful. As I recall, it amounted to (for each user) editing the group file, the passwd file, then turning a command string or script loose on all the data drives to change file permission numbers to the new ones (I added 500 to each user/group).
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

trukosh
Posts: 3
Joined: 2015/01/26 17:04:01

Re: forbidden chown/chmod on NFS volumes gives no error (RC=

Post by trukosh » 2015/01/26 19:25:16

Hi lightman47,
thanks for your reply.
I don't think the UIDs are relevant. For nfsv3 the users don't need to exist on the server.
They do exist on all clients.

The problem is only the missing error message from chown/chmod.
On local volumes the error message is shown and return code is not 0.
When i mount volumes from RH6 or ubuntu 14.04 nfs servfer the error message is shown.
But all clients (RH4,5,6 + ubuntu 14.04) don't recieve error message from centos 7 nfs-server.

Regards

Trukosh

trukosh
Posts: 3
Joined: 2015/01/26 17:04:01

Re: forbidden chown/chmod on NFS volumes gives no error (RC=

Post by trukosh » 2015/01/26 19:42:23

Last post here describes the error:
http://webcache.googleusercontent.com/s ... clnk&gl=de

Post Reply

Return to “CentOS 7 - General Support”