Install Samba packages :

#  yum  install  samba*

Edit the smb.conf file :

#  vi  /etc/samba/smb.conf

Go to the end of this file and copy the last 9 lines and edit to look something like this :

[public]
comment = Public Stuff
path = [path of directory to be shared]
public = yes
writable = yes
printable = no
write list = +staff

Add users :

#  useradd  [username]

#  passwd  [username]

Assign samba password :

#  smbpasswd  -a  [username]

 

#  service  smb  start

 

————Windows side configuration————

Right click “my computer” icon.

Select “map network drive” option.

In folder box write :

\\[ip of server]\[path of share]

Eg. — \\192.168.7.1\public

Press “Finish”.

Give username and Password.

Advertisements