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

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

Read More