SMB simple configuration
2017/10/27 Leave a comment
I write here just a simple guide to enable the SAMBA file sharing on a linux.
First, into /etc/samba/smb.conf
define name of the sharing and path of the folder that you want to share
[Mysharing]
path = /opt/folder2share
browsable = yes
writable = yes
read only = no
create mask = 0777 # Permissions of file inside
If you want to restrict the write permissions, just change them into that file.
Then, add a local user to access via samba using:
sudo smbpasswd -a user
New SMB password:
Retype new SMB password:
After, just restart the smb process and use it!