Skip to content

Instantly share code, notes, and snippets.

@NeoBeum
Last active July 12, 2019 16:53
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 NeoBeum/a58d24bcf9abb3b7861a96d4a223e1fd to your computer and use it in GitHub Desktop.
Save NeoBeum/a58d24bcf9abb3b7861a96d4a223e1fd to your computer and use it in GitHub Desktop.
Unix Shell - FSTAB - Windows SMB 3.0 mount at Logon

cifs-utils

sudo apt install cifs-utils

/etc/fstab

//{IPADDRESS}/<PATH>  /{mnt media}/<SHARENAME>  cifs uid=<UNIXUSERNAME>,credentials=/home/<UNIXUSERNAME>/.smbcredentials,iocharset=utf8,sec=ntlmssp,_netdev  0  0 

~/.smbcredentials

echo username=NTUSERNAME > ~/.smbcredentials
echo password=NTPASSWORD >> ~/.smbcredentials
CHMOD 600 ~/.smbcredentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment