Linux serverNETWORK ADMINISTRATIONS

Samba (Centos 7) – install and share folder from centos 7 to windows 7



**how to install samba on centos 7. And then share a folder from centos to windows 7.

—-
in this video i will show you how to install samba, then setting samba to share a folder.

In the example, i will share two folders :
1) html (/var/www/html)
2) downloads (/home/moko/Downloads) .. #share home directory.

this is my samba configuration (/etc/samba/smb.conf) :

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[html]
path = /var/www/html
browsable =yes
writable = yes
guest ok = yes
read only = no
create mode = 0777
directory mode = 0777
force user = moko

[downloads]
path = /home/moko/Downloads
browsable =yes
writable = yes
guest ok = yes
read only = no
create mode = 0777
directory mode = 0777
force user = moko


** to share home folder, you must add ‘force user = home_user’

see this video for details.

source
centos 7

Leave a Reply

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