Home » Ubuntu Linux » Config share folder using Samba

Config share folder using Samba

Prepare share folder.
user is the ubuntu username

mkdir user_share

install samba

sudo apt-get install samba

add samba group and add user into group

sudo addgroup smbgrp
sudo adduser user smbgrp

change share folder onwer

sudo chown -R user:smbgrp user_share/

config smb.conf

sudo vi /etc/samba/smb.conf

uncomment line

security = user

append following in the end of the file

[UserShare]
path = /home/user/user_share
valid users = @huasambo
browsable =yes
writable = yes
guest ok = no

restart samba service

sudo restart samba

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

*