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.
In this We will seen how to configure Samba Server Using Webmin(web-based interface).
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.
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.
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)
On Below screenshot, The SAMBA Packages can be automatically installed by Webmin.
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.)
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.
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.
Now Click on “Security and Access control” option.
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.
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.
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.
Now click on “Return to share list”.
To check the all samba users.
[root@server1 /]# pdbedit -L gaurav:1000:gaurav [root@server1 /]#
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 /]#
6) Start the samba services.
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.
As above, Specify the samba drive address as //192.168.1.1/WebminShare, and press “ok” button, refer above image.
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 .!!!