LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


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

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


Hello.

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:
Code:
/home/schd_share 123.123.123.123(rw,no_root_squash,sync)
On the client side the /etc/fstab line reads:
Code:
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:
Code:
# mount -v -t nfs -o rw n16:/home/schd_share /schd_submissions
mount.nfs: trying 141.214.4.95 prog 100003 vers 3 prot TCP port 2049
mount.nfs: trying 141.214.4.95 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 2.6.26.6-49 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
rahulk
Member
 
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.
 
  


Reply

Tags
nfs



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:33 AM.

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