Skip to content

Instantly share code, notes, and snippets.

@valorad
Last active June 5, 2022 15:21
Show Gist options
  • Save valorad/d32b953a0f92a321265698c6ba8e98b7 to your computer and use it in GitHub Desktop.
Save valorad/d32b953a0f92a321265698c6ba8e98b7 to your computer and use it in GitHub Desktop.
linux mount cifs (smb share)

Create credentials

=> /etc/samba/credentials

username=myuser123
password=xxxxxxxx
chmod 400 /etc/samba/credentials

Create mount point

mkdir -p /mnt/samba/downloadCenter

/etc/fstab

//HOST-NAME/downloadCenter /mnt/samba/downloadCenter cifs credentials=/etc/samba/credentials,iocharset=utf8,file_mode=0755,dir_mode=0755 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment