Webmin + Usermin on Debian etch mini-HOWTO

Webmin and Usermin are handy administration interface for system administrator, which cover a lot of daily duty for system administration, e.g. apache, bind9, dhcpd, webalizer, cron jobs, logrotate, etc. Some people don't suggest to use Webmin or Usermin due to security concern, but I seems it as a short cut for a newbie become professional.

BTW, Debian etch no longer coming with official support of webmin/usermin package according to many reason (http://wiki.debian.org/Webmin?highlight=%28webmin%29), but the most important point is lack of package maintainer (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343897). So you will not find webmin and usermin under both stable, testing and even unstable.

Is the story end? Not yet! Official webmin/usermin website also provide debian package, which are most up-to-date! This mini-HOWTO will cover the required step for installing such 3rd party package into Debian etch.

Option 1: Install required packages manually

Go to Webmin/Usermin official home page and obtain the latest packages (http://www.webmin.com/):

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.410_all.deb
wget
http://prdownloads.sourceforge.net/webadmin/usermin_1.340_all.deb

Give a first try of install with dpkg. It will prompt you some dependence packages are missing:

dpkg -i webmin_1.410_all.deb usermin_1.340_all.deb

So let's fix it up with apt-get:

apt-get update
apt-get -y install

Option 2: Using the Webmin APT repository

Add this line to your /etc/apt/sources.list:

Then run the following command to install it:

apt-get update
apt-get install webmin usermin

Fix rc*.d scripts

You may found that Webmin/Usermin don't shutdown correctly during reboot, and so let's fix it with update-rc.d:

update-rc.d -f webmin remove
update-rc.d -f usermin remove
update-rc.d -f webmin defaults 99 01
update-rc.d -f usermin defaults 99 01

Access https://example.com:10000 and https://example.com:20000, and check if both Webmin and Usermin are functioning?

Extra security

  1. Remember to set auto-logout: the original Debian Webmin package come with 15min auto-logout as default setting. This is a very good idea for increase the security level.

    Go to "Webmin -> Webmin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of Webmin), or "Webmin -> Usermin Configuration -> Authentication", active "Auto-logout after..." and set to 15min (case of Usermin).

  2. Remember to set IP access control: as like as the case of above, original Debian Webmin package come with only 127.0.0.1 (localhost) restricted access to Webmin as default setting.

    Go to "Webmin -> Webmin Configuration -> IP Access Control", click "Only allow from listed addresses", set to 127.0.0.1 and 192.168.0.0/16 (optional, you should fill in your LAN network) (case of Webmin), or "Webmin -> Usermin Configuration -> IP Access Control", click "Only allow from listed addresses", set to 127.0.0.1 and 192.168.0.0/16 (case of Usermin).


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <code> <del> <blockquote> <q> <sub> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <acronym> <pre> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.