Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

Marcel's Linux Walkabout: Administrative Heaven -- Livin' in a Webmin World

📄 Contents

  1. Introducing Webmin
  2. Webmin Features
Administering your Linux system doesn't have to be difficult. Nor does it have to be different than on every other UNIX system. After all, the enterprise network of today may be running a number of critical systems on various flavors of UNIX. While all UNIX-based systems share some similarities, the differences can be confusing to less experienced administrators. With Webmin, you can simplify this administrative puzzle through a single, common, web-based interface. Join author and columnist Marcel Gagne on his Linux Walkabout as he takes you on a tour through administrative nirvana.
Like this article? We recommend

Today, I'm going to start off with an assumption. Not all of you are Linux gurus who run nothing else. Let me further assume that some readers who are considering deploying Linux systems are likely going to do this with some kind of server task in mind, like uh, for instance, replacing that old NT server with a faster, more reliable Samba server. Understandable. It is also possible that you have a number of systems out there; Solaris systems, AIX boxes, Mac OS X, and HP servers. The only downside to putting yet another OS into this mix — even something as downright fantastic as Linux — is another administrative learning curve.

In this edition of Marcel's Linux Walkabout, I'm going to help you cut that administrative behemoth down to size. I'm going to show you a way to adopt a single administrative interface to cover just about any server you might have out there, including that shiny new Linux system. Read on, my friends. When it comes to networked systems, the Internet, or the global village, the first picture that comes to mind for many people is a web browser. We're not talking systems or network administrators but the average home user. The web browser, whether it be Netscape, Mozilla, Opera, or Microsoft's Internet Explorer, is ubiquitous. It is the window into the Internet, with its wondrous cornucopia of seemingly boundless information. For many, the web browser is also the newsreader and the email client.

It's everywhere. And that is precisely why a browser-based tool like Jamie Cameron's Webmin should become your best friend when it comes to system administration.

Introducing Webmin

Access to your system's vital resources (not to mention the system's need to its administrator) is just a click away using Webmin's slick interface (see Figure 1). If there's a network connection where you are, then you are already home.

Figure 1Figure 1 Resource administration with Webmin.

In order to install Webmin, you need to have Perl version 5 installed. That is pretty much the only requirement (other than a UNIX system). Webmin provides its own tiny web server so the installation of a web server such as Apache is not necessary.

Start by visiting the official Webmin website at www.webmin.com. At the time of this writing, the latest version was 0.92. Don't be fooled by the pre-1.0 release number — Webmin is ready now. In fact, it has been up to the job for a long time.

Now that I've said that all you need is Perl, let me tell you about the optional prerequisites (can you have optional prerequisites?).

Security Features

For the security conscious in all of us, Webmin can also run its server with SSL. To do that, you will need the Perl Net::SSLeay module (available from ftp.cpan.org). To use the module, you also need OpenSSL version 0.9.6b or better:

   tar -xzvf Net_SSLeay.pm-1.09.tar.gz
   cd Net_SSLeay.pm-1.09
   perl Makefile.PL
   make
   make test
   make install

Now that we have the Net::SSLeay module installed, it's time to move on to Webmin proper.

Installing Webmin

Installation is simple. Extract the source into a temporary directory and (as root) run the setup script:

   tar -xzvf webmin-0.89.tar.gz
   cd webmin-0.89
   ./setup.sh

As part of the installation, we now go through a little question and answer. I'll take you through the complete process as I saw it on my Thinkpad. That said, you will find that the format is pretty much the same regardless of platform. In fact, I recreated this installation on a Solaris system as well as an AIX system.

The first question has to do with the configuration and log files that Webmin will use. The default is to install configuration files in /etc/webmin and logs in /var/webmin. If you need to place them in different locations, you should change this now — otherwise accept the default. After this, you'll be asked for the path to the Perl executable. The script correctly chose /usr/bin/perl.

Did I mention "platforms" a moment ago? The great beauty of Webmin shows itself in the next dialog. You'll get a prompt offering you an amazing collection of choices. Figure 2 is what the 0.92 option list looks like.

Figure 2Figure 2 Webmin installation dialog.

As you can see, Webmin is designed to provide services for an impressive number of operating systems. Because Webmin has a consistent interface across all of these platforms, it also provides you with the means to easily administer systems that you don't work with quite as often. Printer administration is just as easy on a Linux system as it is under AIX, HPUX, and so on.

Aside from its varied OS support, Webmin also provides extensive and growing language support. Many of the modules have been translated into French, Japanese, Catalan, Italian, German, and several others.

We'll continue with the Linux install for the moment. Choose the number for your specific flavor of Linux, select the release level of your system, and then press Enter to continue. I chose number 4 for RedHat Linux. I was then presented with another menu from which to select the release level of my RedHat system. I chose option 12 for RedHat 7.2. Every OS, of course, has multiple release levels.

A few paragraphs back, I mentioned that Webmin runs its own little web server, the details of which you now get to choose, specifically the port number on which it runs. The default port number is 10000 but you can select something different at this point if you wish. We're almost there. A couple of additional questions follow — the login name required to access the web server, a password, and the hostname that Webmin should use:

   Web server port (default 10000):
   Login name (default admin):
   Login password:
   Web server hostname (default testsys.mycompany.com):
   Use SSL (y/n):

The SSL question is only asked if you have the Net::SSLeas.pm modules installed (which I mentioned earlier). Otherwise, the install will inform you that the module is not installed and consequently, SSL cannot be installed. Let me take a moment to lay your fears to rest — the Webmin server is protected (as in good cgi scripting), but that doesn't stop somebody from running a sniffer on your network. Consequently, I chose the SSL enabled browser.

Before we finish with Webmin's install phase, we have one final question to answer. Would you like Webmin to start automatically at boot time? The answer here is probably "Yes". While this can all be automatic, you can always start it manually in this way (assuming that you accepted /etc/webmin as the directory for the config files):

   /etc/webmin/start

Similarly, you can stop the Webmin server at any time with this command:

   /etc/webmin/stop

That's all there is to it. Now, let's take Webmin out for a spin.

Start your favorite browser and connect to the Webmin server using http://your_server:10000. This assumes that we accepted the default port of 10000 and are running without SSL support. Otherwise, try https://your_server:port_no instead.

By the way, this is an all or nothing situation. You are either running the SSL-enabled server or you are running the plain server. If you choose the SSL-enabled server, you cannot use a browser that does not support encryption. The reverse is true as well. You can, however, turn SSL access on and off via the Webmin Configuration menu — but I am jumping ahead just a bit.

When you look at that initial screen, take note of the Webmin Log option. Using this option, you can create a report showing you all the actions that have been taken through the interface. If this is your first time, take a moment to turn logging on. It is off by default. You can optionally choose what actions you want tracked — I chose all ("Log actions by all users" and "Log actions in all modules"). Furthermore, consider telling Webmin to log the IP addresses of anyone using the interface. Click Save and you are ready to start using Webmin.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020