Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/exports - how to?

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
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
 

/home 10.0.0.123(rw)

fx?

Cheers


Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 

Sorry, it's too early and I didn't notice it was the AIX forum.

You should use 'mknfsexp' to export file systems:

mknfsexp -d /home -t rw -c hosname

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
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?

Thanx again!
 
Hi,

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 ...

Example:
nfsserver:
mkuser id=777 test
chmod 700 /nfsserverdir
mknfsexp -d /nfsserverdir -t rw -c nfsclient -B

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 ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top