Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
J’aim e Soyez le prem ier de vos am is à indiquer que vous aim ez ça.
You may have read my recent article "Easy Samba Setup," which illustrated just how easy it can be to set up the
Samba file and print server. Yes, that task can be easy, but the method I outlined does require you to take
advantage of the command line. There are a lot of users who shy away from the command line as if it were the
plague. For those users there are options. One of those options is the Samba tool from the Gadmin suite of tools.
The Webmin administration tool is a very powerful suite of web-based admin tools (for the Linux operating
system) that have been around for some time. Webmin includes numerous modules covering nearly every aspect
of Linux administration. Such tools include:
DHCPD
Bind
Apache
CVS
Procmail
SSH
Samba
and hundreds of others.
In this article I will show you how to install Webmin and use it to configure your Samba server.
Installation
Everyone who despises the command line will be happy to know that installing Webmin is fairly simple to
install...for the most part. There are dependencies that must be met, which will be determined by your system.
And, if you choose to ignore the command line, there is a small glitch that must be resolved - fear not, it's simple.
I want to focus this tutorial on the new user - one who does not want to have to deal with the command line. To
that end, let's get around the issue of dependencies with the help of Synaptic. I want to show you this method
because there can be an issue when installing Webmin from the binary package found on the site. Let's use
Ubuntu as an example. Follow these simple steps:
Now that you have the dependencies out of the way, this is where it gets somewhat tricky. You can take the time
and install using the source code of Webmin. During that installation there will be numerous questions asked. It's
really not difficult. If you want to go that route, here are the steps:
You see, that's not really all that difficult. If, however, you want to go an easier route follow these steps:
http://www.linux.com/learn/tutorials/299651-samba-configuration-with-webmin?tmpl... 30/03/2011
Samba Configuration with Webmin | Linux.com Page 2 sur 4
Now I am going to walk you through the steps in order to quickly create a Samba share on your machine. I am
going to assume a rather simple route - that you want to share out the /home directory to all users on the system
and you want to give both read and write access to users. Here are the steps:
d) Leave the rest as default (we will change some of this next).
e) Click Save.
You will now find yourself back at the Share listing. You want to click on your newly created share so you can
make some more advanced configurations. When your share opens up you will now find a few more options
available:
http://www.linux.com/learn/tutorials/299651-samba-configuration-with-webmin?tmpl... 30/03/2011
Samba Configuration with Webmin | Linux.com Page 3 sur 4
If you want your users to have both read and write access to the share, you need to see all of these to 755. Once
you have done that click Save. Of course within these configurations, you can really get granular with your Share
set up. I am only showing you how to create the easiest Share with the most access.
Once you have your Share complete there is but one step left: add users to Samba.
User Configuration
Figure 4
Go back to the Samba module page on your
Webmin installation and scroll down a bit. You
will see the section for Samba Users. Click on the
Convert UNIX Users to Samba Users link. On this
new page (see Figure 4) click the Convert Users
button and all of your existing users will be added
to the Samba system. Now any user will be able to access your Samba shares.
Finally, go back to the main screen and click the Restart Samba Servers button. Your users should now be able
to access the shares on that system.
A Few Tips
1) If you add a new user to the system, don't forget to convert that user to a Samba user.
2) If you need to add a new user to share access, don't forget to do so through the Security and Access window
of the share.
3) If you have Windows users that need to access shares, make sure they have an account on the Samba server
that matches (both username and password) on the Windows machine. NOTE: This is only necessary when
using SECURITY = USER.
Final Thoughts
Samba used to be an incredibly difficult system to configure. This is no longer the case. Whether configured from
the command line, from the GNOME desktop, or from Webmin, just about anyone can get a Samba share shared
out to users. Please note: This setup I have outlined does not create the most secure system. If security is a
concern, you will want to make sure you go through this process again with a closer eye on security and sharing
issues unique to your environment.
Jack Wallen
http://www.linux.com/learn/tutorials/299651-samba-configuration-with-webmin?tmpl... 30/03/2011
Samba Configuration with Webmin | Linux.com Page 4 sur 4
Jack Wallen has been writing about Linux for nearly ten years. Starting out by building the Linux community on
Techrepublic.com, Jack was not only the editor in chief of Linux content, he wrote hundreds of articles covering
nearly all aspects of the Linux operating system. Jack has continued writing for Techrepublic (now as a freelance
writer) as well as joining Linux.com and ghacks.net.
http://www.linux.com/learn/tutorials/299651-samba-configuration-with-webmin?tmpl... 30/03/2011