Mount SMB3 in Linux

Mount SMB3 in Linux

Install package

sudo apt install cifs-utils

Mount from command line

sudo mount -t cifs //192.168.1.100/Movies /mnt/Media vers=3.0,credentials=/etc/smbcredentials,uid=111,gid=1000,pass=PASSWORD

Add into /etc/fstab

  • Create credentials file /etc/smbcredentials
username=user
password=password
domain=domain
  • Update mode
chown root:root /etc/smbcredentials
chmod 600 /etc/smbcredentials
  • Update /etc/fstab
//server/share_name  /mnt/smbshare  cifs  credentials=/etc/smbcredentials,vers=3.0,file_mode=0755,dir_mode=0755 0       0

References

How to Mount Windows Share on Linux using CIFS

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


The reCAPTCHA verification period has expired. Please reload the page.