1. Configure samba to "Leius" OS
Set smb password to the user by command from root user
root# smbpasswd -a <user>
Setup folder to share on smb network
root# mkdir <folder_shared>
Setup network drive in samba config file
root# vim /etc/samba/smb.conf
# workgroup = MYGROUP
workgroup = WORKGROUP
security = user
[FOLDER-NAME]
comment = "Folder shared"
path = <folder_shared>
valid users = <user>
public = no
writable = yes
printable = no
create mask = 0765
directory mask = 0755
Restart the systemd to samba by command:
# systemctl restart smbd
# systemctl restart nmbd
Check the services to samba by command:
# systemctl status smbd
# systemctl status nmbd