nfs-kernel-common

this is for access of files between unix-machines. you will need to install this package as you want to. than you must have /etc/exports and can have /etc/hosts.[deny|allow]. in /etc/exports you can put the directories you want to export like

()

for your home dir it would be

/home/user 10.10.0.0/255.255.0.0(rw)

this exports the dir /home/user for all clients in the subnet of 10.10.0.0/255.255.0.0 with rights for reading and writing. the next thing would be, to use hosts.[allow|deny].

nfs looks into hosts.* before it allows access to the exported dir. also you can allow/deny services to access the files via

: e.g. portmap:ALL would deny in hosts.deny the access of portmap for all clients.

to mount the dir from a remote machine it would be

mount -t nfs : /tmp/nfs -> mount -t 10.10.6.66:/home/user/ /tmp/nfs

source:
http://tldp.org/HOWTO/NFS-HOWTO/server.html

Advertisements

~ by frankooh on 2011-01-20T09:40:29+00:00.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: