Knowledgebase
Sharing Linux folder using Samba
install samba first:
sudo apt-get install samba
Edit /etc/samba/smb.conf
[ShareName]
path = /path/to/folder
browseable = yes
read only = no
guest ok = no
valid users = smb
Add linux user
create a directory: /path/to/folder and give permisssion for the user smb
mkdir /path/to/folder
chown smb /path/to/folder
chgrp smb /path/to/folder
chmod 775 /path/to/folder
smbpasswd smb
restart samba service:
service smbd restart
to test from windows you can map a drive:
ip_or_domain_nameShareName
to connect from linux, install smb client:
apt-get install smbclient
and then connect:
smbclient //ip_or_domain_name/ShareName -U smb
sudo apt-get install samba
Edit /etc/samba/smb.conf
[ShareName]
path = /path/to/folder
browseable = yes
read only = no
guest ok = no
valid users = smb
Add linux user
create a directory: /path/to/folder and give permisssion for the user smb
mkdir /path/to/folder
chown smb /path/to/folder
chgrp smb /path/to/folder
chmod 775 /path/to/folder
smbpasswd smb
restart samba service:
service smbd restart
to test from windows you can map a drive:
ip_or_domain_nameShareName
to connect from linux, install smb client:
apt-get install smbclient
and then connect:
smbclient //ip_or_domain_name/ShareName -U smb
Post Date: 2018-05-15 13:35:36 · Tags: Knowledgebase,