Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-28-2005, 12:16 PM   #1
Registered: Apr 2005
Posts: 36

Rep: Reputation: 15
NFS doubt ...


I am running a Fedora Core I box (let's say F1B) and need to perform the following task:

There is a computer running Solaris 8, let's say S8S (Solaris 8 Server). On that server I have a directory which I want to import throgh NFS (let it be d). As you know, the owner of d is u and I only want to give write access to u (in the S8S)

I configured the shre file in the S8S but when I import d to F1B, I do not have write access, so what am I doing wrong? I searched and there is no way to tell the mount command to import the directory as a user on the remote server.

Thenks in advance,

Best regards,
Old 11-28-2005, 04:20 PM   #2
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32

first the read/write permissions must be set in hosts.allow as well (if you have RO in hosts.allow, you will have trouble mounting R/W...).
Then, nfs will preserve the directory tree ownerships and permissions, so your users must have the same UID (and GID) on both machines.
Old 11-28-2005, 04:36 PM   #3
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
First, is it safe to assume you specified the export as writable (rw) in your /etc/exports on the server?

Second, did you deal with the user ID issue? NFS mapps the numeric user IDs of the files on the server to the database of local users on the client. So, if user joeblow is UID 1001 on the server, but joeblow is UID 1003 on the client, then joeblow will not be able to write to his own files. The two ways I know how to deal with this are to make sure all users have the same UIDs on both boxes, or to use a map file, which you can read about in the man page for exports(5).

Guess I typed too slow.

Last edited by AdaHacker; 11-28-2005 at 04:37 PM.
Old 11-28-2005, 05:32 PM   #4
Registered: Apr 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Thank you! Using the same uid and gid on both machines (server and client) it worked!


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
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
Doubt in C++ zeropash Programming 1 07-05-2005 12:33 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM
a doubt... ashesh Linux - General 6 09-08-2003 01:07 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:24 AM.

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