Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-03-2008, 11:14 AM   #1
Registered: Feb 2002
Location: USA
Distribution: Fedora, CENTOS
Posts: 209

Rep: Reputation: 32
Mounting NFS share on client changes permissions to read-only


This is a strange one and so all suggestions are welcome.

A folder I'm exporting as read-write from an NFS server is getting mounted on the client as drwxrwx---.

On the NFS server I've checked the /etc/exports file:
On the client side the /etc/fstab line reads:
n16:/home/schd_share    /schd_submissions       nfs     rw,hard,intr    0 0
The user and group id's are identical on both machines.
The problem persists even if I turn off the firewalls.

I've tried to manually mount the share:
# mount -v -t nfs -o rw n16:/home/schd_share /schd_submissions
mount.nfs: trying prog 100003 vers 3 prot TCP port 2049
mount.nfs: trying prog 100005 vers 3 prot UDP port 4002
n16:/home/schd_share on /schd_submissions type nfs (rw)
This results in the nfs share being mounted but with the wrong permissions.
Before I mount the share the folder /schd_submissions has the correct permissions: drwxrwxr-x
After mounting it changes to: drwxrwx---

I'm running Fedora 8 with kernel on the client machine (fully patched and updated).
The nfs server is RHEL 5 fully patched and updated kernel.

Any ideas what's going on?

Thanks in advance
Old 12-03-2008, 01:19 PM   #2
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
answer is simple...the NFS mount is originated from the server hence the directory permissions on the server will be used for client. The mount points do not follow the local server's permission as they are not local..

Hence if you have 755 on server for folder /A, the client will mount it as 755 irrespective of what your mount point folder permission was on the client.

To correct the problem, give the folder on the server, the permissions you want the client to have.

On server:- /sch** should have 775 permission.

On client before mounting:- /sch** can have any permission.

After mounting on client:- /sch** will have 775 permission.

Best Regards,
Rahul Khare.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting NFS share in Ubuntu always creates read-only IMNOboist Linux - Networking 3 09-16-2007 11:55 PM
NFS share not mounting with read/write permissions syphoncode.32 Linux - Software 1 06-15-2007 02:46 AM
permissions problem in nfs share Falafel Linux - Networking 1 03-14-2007 02:15 PM
Permissions on NFS Share IwantLINUX Linux - Newbie 2 03-09-2007 05:03 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration