Setting up Samba Server Step-by-Step config Guide Using Webmin

Configure Samba Server Using Webmin

Samba allow Linux system to share files and printers across a network connection. By using its SMB(server message block) protocol, you Linux box can appear in windows network neighborhood or my network places just like any other windows machine. You can share files this way, as well as printers.

Samba is an Implementation of a common Internet file system(CIFS, also know as SMB) protocol server that can be run on almost every variant of UNIX in existence. Microsoft clients will use this protocol to access files and printers located on your UNIX box just as if it were a native window server.

dns_webmin_logo_ittroubleshooter-in-copy-copy

In this We will seen how to configure Samba Server Using Webmin(web-based interface).

My setup:

Webmin Samba server ip add. and hostname(Centos7): 192.168.1.1 (server1).
Samba client ip add. and hostname(Window): 192.168.1.5(client3).

Step by Step configuration of SAMBA Server Using Webmin

1) Setting up Webmin.

As previous, we have seen how to configure Webmin on Centos/RHEL7 systems, refer below link.

Setting up Webmin on Centos/RHEL7

2) Install the package for SAMBA using Webmin.

After Log into Webmin, First we need to search “SAMBA Server” and install the SAMBA Server Packages, refer below screen shots.

ittroubleshooter_in_1

After search “Samba Windows File Sharing”, Click on “Click here” option to downloaded the DHCP server Packages using YUM. If you are not configured the YUM server, refer the link.(Configure the Yum Server in Centos7/RHEL7/Fedora22)

ittroubleshooter_in_2

On Below screenshot, The SAMBA Packages can be automatically installed by Webmin.

ittroubleshooter_in_3

3) Create New File Sharing.

Go to Servers, then click on “Samba Windows File Sharing” andClick on the Create a New File Share from the top section (refer below screenshot.)

ittroubleshooter_in_4

On the next window, you will need to enter the following information, refer below image. You have to Give your share name on “Share name” box, Choose the directory you want to share on “Directory to share” box & add user name(in our case we use “gaurav” user which is already created on the system) on owner and group box and Add a comment if you need on “Comment” box then click create button.

ittroubleshooter_in_5
After click on “create”, You will now find yourself back at the Share listing. You want to click on your newly created share (in our case “Webminshare”)so you can make some more advanced configurations.

ittroubleshooter_in_6

Now Click on “Security and Access control” option.

ittroubleshooter_in_7

After click on “Security and Access control” option, Below (refer below image) window will open. You will want to take care of the various option, refer below screen shot and then click on save option.

ittroubleshooter_in_8

After click Save and you will be back at your share setup page.

4) Add users to samba.

Go back to the Samba module page on your Webmin installation, Click on “Convert users” option.

ittroubleshooter_in_10

On this new page (see below image) click on Only listed users or UID ranges to the Samba system and add user(In our care the user is “gaurav”) and click on “Convert Users” option.

ittroubleshooter_in_11

Now click on “Return to share list”.

ittroubleshooter_in_12

To check the all samba users.

#pdbedit -L

[root@server1 /]# pdbedit -L
gaurav:1000:gaurav
[root@server1 /]#

ittroubleshooter_in_13

5) Add the samba service to the firewall.

[root@server1 /]# firewall-cmd --permanent --add-service=samba
success
[root@server1 /]# firewall-cmd --reload
success
[root@server1 /]#

ittroubleshooter_in_14

6) Start the samba services.

ittroubleshooter_in_15

7) Connect from window to the samba server.

To connect from window to samba server, go to run and type “Directory Location”, as shown below.

ittroubleshooter_in_16

As above, Specify the samba drive address as //192.168.1.1/WebminShare, and press “ok” button, refer above image.

ittroubleshooter_in_17

After mounting create some files on it, refer above screenshot.

Hope this post will help Linux/Unix beginners. Please share you feedback and Comments. Till then connected with us at ittroubleshooter.in .!!!

Leave a Reply

1 Comment on "Setting up Samba Server Step-by-Step config Guide Using Webmin"

Notify of
avatar
Sort by:   newest | oldest | most voted
David Musa
Guest

how can I insert multiple strings in the valid groups of “Security and Access control” ?

wpDiscuz