Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Last active December 1, 2020 17:25
Show Gist options
  • Save gnthibault/46798f6e4da9e74b791621d571ffe628 to your computer and use it in GitHub Desktop.
Save gnthibault/46798f6e4da9e74b791621d571ffe628 to your computer and use it in GitHub Desktop.
Example fstab for cifs/sshfs/nfs
# CIFS with password in clear, or in a file
# content of /home/user/.smbcredentials looks like this:
# username=user.name
# password=password
# domain=WORKSPACE
//smbservername/foldername /home/user/foldername cifs uid=username,rw,user=smbuser,password=smbpassword,vers=3.0 0 0
//smbservername/foldername /home/user/foldername cifs uid=username,rw,credentials=/home/user/.smbcredentials,vers=3.0 0 0
# SSHFS
sshfs#username@remotehost:/home/remoteUser /home/user/foldername fuse identityfile=/home/localhost/.ssh/id_rsa,defaults,allow_other,transform_symlinks,follow_symlinks 0 0
# NFS (supposed be faster than CIFS)
192.168.0.1:/foldername /home/user/foldername nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14,nfsvers=3 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment