Mount SMB Share in fstab Ubuntu

Username/Password in connect string

vi /etc/fstab
#theShare
//theServer/theShare  /mnt/theMount  cifs  vers=3.0,username=theUsername,password=thePassword,uid=1000,gid=104,iocharset=utf8,file_mode=0777,dir_mode=0777,nounix  0  0

Username/Password in credentials file

vi /home/username/.smbcredentials
#username=MyUsername
#password=MyPassword

# OR:
username=MyUsername
password=MyPassword
domain=MYDOMAIN
chmod 660 /home/username/.smbcredentials
vi /etc/fstab
#theShare
//theServer/theShare  /mnt/theMount  cifs  vers=3.0,credentials=/home/username/.smbcredentials,uid=1000,gid=104,iocharset=utf8,file_mode=0777,dir_mode=0777,nounix  0  0

 

 

 

 

 

 


Revision #3
Created 6 March 2022 21:40:08 by Dino Edwards
Updated 8 March 2022 12:52:22 by Dino Edwards