Mounting nfs share

From thelinuxwiki
Revision as of 15:56, 12 April 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

nfs client

mount -t nfs HOSTNAME:/path/to/sharedDirectory /mnt/target

for nfs file type support (on debian based)

sudo apt-get install nfs-common

nfs server

NFS security: /etc/exports specifies what files / directories are mountable

Example:

 # /etc/exports: NFS file systems being exported.  See exports(5).
 /vol1 *(rw,no_subtree_check,no_root_squash)
 /home/john *(rw,no_subtree_check,no_root_squash)

User permissions are determined by UID / GID If the user account on the remote device has a UID that matches up with the owner of the files on the NFS server, they can / will have full write access!!! If they have root on the remote device, they can become any UID they want!


changing a users UID

usermod -u -<UID> <username>