How-To: Linux Samba Share Configuration


Samba is a server which allows you to mount linux shares on a windows machine. Very useful if you are running in a windows world environment.

If you are running on a CentOS or RedHat Based Distro, run the following:

yum install samba

useradd shared

vi /etc/samba/smb.conf

Add the following lines at the end of the file to share a directory under /shared and under the share name shared

[shared]
comment = Shared Directory
path = /shared/
valid users = shared
public = no
writable = yes
printable = no
create mask = 0765

After that run:

smbpasswd -a shared

and then:

service smb restart

Gulshan Yashveer Beejan

Gulshan holds a BSc(Hons) Computer Science with Distributed systems from the City University of London. He is currently working at DSOGroup(Mauritius) as a Linux Administrator on SaaS Solutions. More about Gulshan

Leave a Reply

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