Files
oam/knowledge base/mount samba shares from a unix client.md
2023-09-14 00:24:42 +02:00

857 B

Mount samba shares from a unix client

Table of contents

  1. TL;DR
  2. Further readings

TL;DR

# Mount samba shares as user 'myself'.
# Such user and a group of the same name exist on the server.
# Show permissions on directories as octal 775 and on files as octal 664.
sudo mount '//nas.lan/shared/folder' 'local/folder' -t 'cifs' \
  -o 'user=myself,uid=myself,gid=myself,dir_mode=0775,file_mode=0664'

Further readings