LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS and Samba Server and client configuration- I.P. and Username difference (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-and-samba-server-and-client-configuration-i-p-and-username-difference-4175592560/)

amperenaushad 10-31-2016 05:08 AM

NFS and Samba Server and client configuration- I.P. and Username difference
 
When we configure samba client we give existing "username" who can access that samba share like #smbclient -L server name (or I.P.) -U username.
But while configuring NFS Server we give only I.P. in /etc/exports of that machine that can access this share like /nfsfileshare Client-I.P.(rw,sync,no_root_squash)
My Question is- Can we use existing "username" in place of Client-I.P. in NFS server configuration?
I am new to this.

michaelk 11-01-2016 12:00 PM

No, with NFS a client is another computer that requires access to the share on the server. Basic user permissions are based on the uid,gid.

So what are you trying to accomplish?

jpollard 11-01-2016 07:50 PM

Well, there is nfsidmap - which provides translation tables for translating remote uid/gid into local uid/gid.

It is just usually easier to use the same UID/GIDs on the NFS client as those used on the NFS server.

amperenaushad 11-07-2016 05:37 AM

Thanks jpollard and michaelk :)


All times are GMT -5. The time now is 09:11 AM.