Debian Samba Setup

apt-get update
apt-get install samba

Add User

useradd username

Change username to you real username

passwd username

Set Password of username user

smbpasswd -a username

Set samba password. Set samba password for connect samba drive

nano /etc/samba/smb.conf

Edit samba config file

[raid016T]
comment = Pi4 16TB Raid0
path = /home/raid016T
create mask = 0777
directory mask = 0777
browseable = yes
only guest = yes
public = yes
read only = no
vaild users = username

Create config Share Folder information

systemctl restart samba

Restart samba service