How to auto mount SMB share on boot?

Hi, welcome to Zorin OS!

Please be very careful when doing this to system files. Make sure to revert the permissions back to what they were before. Even better, use one of these methods for editing files as root:

You might also want to consider making a copy of sensitive files before editing them, as backup in case things go wrong.

Is this the actual name of the shared folder on the remote host? I'm not actually sure if it'll work with spaces and/or encoded characters. Please check that and use the correct name for the host, or replace any spaces with \040, for example:

//192.168.0.101/oa\040production/ /mnt/samba cifs username=zzzz,password=yyyy,x-systemd.automount 0 0
1 Like