LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
NFS doubt ...


Hi,

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,
Wilmer
 
Old 11-28-2005, 04:20 PM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

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
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
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).

Edit:
Guess I typed too slow.

Last edited by AdaHacker; 11-28-2005 at 04:37 PM.
 
Old 11-28-2005, 05:32 PM   #4
wjleon
Member
 
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!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:06 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