LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS doubt ... (https://www.linuxquestions.org/questions/linux-networking-3/nfs-doubt-387296/)

wjleon 11-28-2005 12:16 PM

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

fr_laz 11-28-2005 04:20 PM

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.

AdaHacker 11-28-2005 04:36 PM

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.

wjleon 11-28-2005 05:32 PM

Thank you! Using the same uid and gid on both machines (server and client) it worked!


All times are GMT -5. The time now is 03:05 AM.