Skip to content

Instantly share code, notes, and snippets.

@aminemat
Created January 4, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aminemat/1241746b1915ee67c6d629fa75530ed6 to your computer and use it in GitHub Desktop.
Save aminemat/1241746b1915ee67c6d629fa75530ed6 to your computer and use it in GitHub Desktop.
NFS ubuntu/macos tips
;uid and gis have to be the same in both the server and client
;change uid and gid in /etc/passwd
sudo find /home -uid OLD_UID -exec chown -h NEW_UID {} +
sudo find /home -gid OLD_GID -exec chgrp -h NEW_GID {} +
;mounting on mac
sudo mount -t nfs -o resvport,rw devbox.dev:SERVER_FOLDER CLIENT_FOLDER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment