How to install and config samba service on the Debian 9? Pre-work Update the debian system. sudo apt-get update && apt-get upgrade Install samba service sudo apt-get install -y samba Add samba user who can visit the share documents and folders. Create the samba user group. groupadd samba Create the system user who can't login the server. useradd -g samba -M -s /sbin/nologin admin Set the user password. passwd admin Set the samba login password. smbpasswd -a admin Set the share folder. Create the user share folder. mkdir /home/admin Change the folder previlieges. chmod 777 /home/admin Samba configuration file. vim /etc/samba/smb.conf [Blu-ray] comment = blue ray path = /home/admin public = no valid users = admin write list = admin create mask = 0777 directory mask = 0777