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

Post Date: 2018-05-15 13:35:36 · Tags: Knowledgebase,

Article Topics

Apache
 . . .SSL (1)
Mysql (2)
SOLR (1)
Oracle (4)
Unix (2)
 . . .Command Line (1)

Quick Contact

Phone: 608-320-9321

pdf document opens new tab Resume

LinkedIn opens new tab LinkedIn Profile

Payments opens new tab Online Payments