Rob Kampen
2009-Jul-13 19:47 UTC
[CentOS] nfs (v3?) fails to allow writes and permission changes
Hi All, I have an nfs mount from my CentOS 5.3 client to a CentOS5.3 server. This has been functioning correctly for some years. Beginning last week I had problems saving OpenOffice documents onto the nfs mounted volume. OpenOffice just times out with a file io error. So I tried just a simple shell - cd to the mounted volume did a vi create of text file - no problems. tried a chmod +w on an owned file - returned okay but no change to the permissions when checked with ls -l tried sudo chmod +w on the same file and get [rkampen at robsws p_494]$ sudo chmod +w 5887_cover.pdf Password: chmod: changing permissions of `5887_cover.pdf': Operation not permitted yet using gnome file browser I can change permissions on these nfs mounted files just fine - go figure. This did work in the past - so what has changed? how do I check what version of nfs is actually working? [rkampen at robsws p_494]$ mount 192.168.230.230:/NDG on /NDG type nfs (rw,noatime,intr,addr=192.168.230.230) Any thoughts? Thanks Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: rkampen.vcf Type: text/x-vcard Size: 121 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090713/ceffae8d/attachment-0003.vcf>
nate
2009-Jul-13 19:50 UTC
[CentOS] nfs (v3?) fails to allow writes and permission changes
Rob Kampen wrote:> [rkampen at robsws p_494]$ sudo chmod +w 5887_cover.pdf > Password: > chmod: changing permissions of `5887_cover.pdf': Operation not permitted > yet using gnome file browser I can change permissions on these nfs > mounted files just fine - go figure. > > This did work in the past - so what has changed? > how do I check what version of nfs is actually working?Root squash may be enabled by default, try adding the "no_root_squash" option to your exports file on the server side, you may need to remount the volume on the client side after restarting/reloading nfs on the server. nate
Craig White
2009-Jul-13 19:53 UTC
[CentOS] nfs (v3?) fails to allow writes and permission changes
On Mon, 2009-07-13 at 15:47 -0400, Rob Kampen wrote:> Hi All, > I have an nfs mount from my CentOS 5.3 client to a CentOS5.3 server. > This has been functioning correctly for some years. > Beginning last week I had problems saving OpenOffice documents onto the > nfs mounted volume. > OpenOffice just times out with a file io error. > So I tried just a simple shell - cd to the mounted volume did a vi > create of text file - no problems. > tried a chmod +w on an owned file - returned okay but no change to the > permissions when checked with ls -l > tried sudo chmod +w on the same file and get > [rkampen at robsws p_494]$ sudo chmod +w 5887_cover.pdf > Password: > chmod: changing permissions of `5887_cover.pdf': Operation not permitted > yet using gnome file browser I can change permissions on these nfs > mounted files just fine - go figure. > > This did work in the past - so what has changed? > how do I check what version of nfs is actually working? > > [rkampen at robsws p_494]$ mount > 192.168.230.230:/NDG on /NDG type nfs (rw,noatime,intr,addr=192.168.230.230) > > Any thoughts?---- man pages are your friends man exports Very often, it is not desirable that the root user on a client machine is also treated as root when accessing files on the NFS server. To this end, uid 0 is normally mapped to a different id: the so-called anonymous or nobody uid. This mode of operation (called ?root squash- ing?) is the default, and can be turned off with no_root_squash. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.