Samba add user for share

add user

sudo smbpasswd -a USER
sudo smbpasswd -e USER

set up share path

/etc/samba/smb.conf

[USER]
        comment = USER home
        path = /home/USER
        writeable = yes
        public=yes
        browseable = yes
        create mode = 776
        force directory mode = 776

restart samba service

sudo systemctl restart smbd.service
sudo systemctl restart nmbd.service

if still can't access, then check below config

/etc/samba/smb.conf

[global]
   hosts allow = #add your IP here

restart samba service again, it should work now.

Subscribe to Post, Code and Quiet Time.

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe