Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Created May 2, 2011 12:12
Show Gist options
  • Save lukmdo/951514 to your computer and use it in GitHub Desktop.
Save lukmdo/951514 to your computer and use it in GitHub Desktop.
NFS server setup
1) # vim /etc/exports:
# What_to_share With_whom
ABS_PATH IP(rw,all_squash,anonuid=XXX,anongid=YYY,insecure)
# `all_squash` - turns on mapping. Each file created/modified on the client will be mapped to user
# configured by `ananuid` and `anangid` on the server side.
# `anonuid` - id of server side user of the changed files
# `anangid` - gid of server side group of the changed files
# `insecure` - lests in all requests form port higher then 1024
2) # /etc/init.d/nfs restart
3) # chkconfig nfs on
# in order to bring it up automatically after restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment