Hello,
I want to export a FS so only one remote user can access (RW) this FS. how to do it? what paramters should I write in /etc/exports after the name of the FS?
thanx for your replies!
But may you know how Can I let access to a specific user:
e.g
on the remote host I have a user called 'test'. I want that only him can get to /test on my local machine.
Is it impossible?
NFS server exports (opens) the directory/filesystem to your NFS client. It does not handle users by user names. The users are handled by UID (User ID) and GID (Group ID) defined in the UNIX. If you simulate the same UID and GID from the client as the UNIX permissions are set, then you are ready with the permissions. But it may have security issues ...
nfsclient:
mkuser id=777 test
mknfsmnt -f /nfsdir -d /nfsserverdir -h nfsserver -n -N -a -t rw -w bg -Y -Z -X -H -j -q -s
(or just mount nfsserver:/nfsserverdir /nfsdir) - I prefer the mknfsmnt.
There was a subsystem called pcnfsd invoked from the inetd, that forced the NFS client to authenticate itself, but if the authentication (username+password) was successful, it let the NFS client to connect the NFS filesystem as a usual NFS mount.
So, the security is better, but it is the case again - if you want to dig more into NFS security ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.