1833995 Members
3674 Online
110063 Solutions
New Discussion

NFS Problem

 
Roslyn Faicol
Occasional Advisor

NFS Problem

Hi,

I configured my NFS using SAM in our UNIX server and set the ff parameter.
Share Name : /TEMP
Specify UID for Unknown User : UID: 105
Allow Asynchronous Writes : NO

Permission for File Access:
Modify User Access : Read Write for Selected System (Access provided only to our Virtual FTP Server)
Modify Root Access : Read Write for Selected System (Access provided only to our Virtual FTP Server).

The Shared File System seem to work. I can see the shared directory in our Virtual FTP server and can write on it.

However, our requirement is to set the UID and GID. In this case, oracle:dba. So everytime a data will be put on the shared directory, the owner should always be oracle and the group will be dba. Aside from that the file permission should be rw-rw-rw. Are my settings correct ? Can anybody help me figure out how to do this?
2 REPLIES 2
Peter Godron
Honored Contributor

Re: NFS Problem

Hi,
does your /etc/passwd file match the requirements as specified in "man exportfs"
What are your details for UID 105 on BOTH systems ?

"anon=uid
If a request comes from an unknown user, use uid as the
effective user ID.

Root users (user ID 0) are always treated as user
unknown by the NFS server unless they are included in
the root option below.

If the client is a UNIX system, only root users are
considered unknown. All other users are recognized
even if they are not in /etc/passwd.

The default value for uid is the user ID of user
nobody. If user nobody does not exist, the value -2 is
used. Setting the value of anon to -1 disables
anonymous access."
Roslyn Faicol
Occasional Advisor

Re: NFS Problem

UID 105 belongs to oracle the user which I want to make the owner of the file that will be written to /TEMP. Aside from that, I would also would like to set the group (GID) to dba, which is 103.

So that if I put a file in the shared directory mapped to a VFTP server, the file owner will be oracle:dba. In the current set up it only inherits the oracle : 105 instead of oracle:dba.
Ex:

-rwxrwxrwx 1 oracle 105 0 Apr 12 10:26 test1.txt

instead of :

-rwxrwxrwx 1 oracle dba 0 Apr 12 10:26 test1.txt

exportfs is like this?
/TEMP -anon=105,root=SV5162.ph.sunlife,access=SV5162.ph.sunlife