Helpful Information
 
 
Category: Development Articles
One-Stop Linux Administration with Webmin

This is a very nice piece of software, I found it to to work quite well with my Red Hat 6.2 system and will be consulting with my school sysadmin about it to see if it makes sense for us to run it. I think this software is quite user friendly, which is a big plus to those that don't have much of a clue. However I guess one drawback is it is very sloppy with Lynx. Many people who run full on servers don't use X because it uses more resources so they will be using text mode. I tried it with Lynx, it can be done but is quite hard to follow. Overall I would say it is worth it and those that run servers should try it and see what they find out. Also, once done using it you should be sure to shut it down because with it left open there is bound to be an attack on it. I will be looking into this soon. Download it and try it, it's cool.

I agree. I have actually been using Webmin for a long time on my Redhat 6.1 web server. It helps a lot with administration, especially since the computer is co-located in a different state and I can't simply walk up to the machine and start typing away in the console. If you're going to have webmin running all the time, make sure it's secure. I have it configured where it will only run under a subdomain assigned to my computer by my web host. I also built several layers of password protection. It'd be pretty hard to get in.

How did you layer the password protection??

Keith

I modified the program's code to include a username/password screen that takes the information from a database. That, of course, is after they pass the .htaccess-like authentication that comes with Webmin.

One way (allbeit long) to do this is by using Apache (if available) and PHP for authentication purposes along with .htaccess. Here is an example of the code that you can use for this purpose:

<!-- Code -->
<p><pre><font color=#008000><xmp>
<?PHP
if (!isset($PHP_AUTH_USER)) {
header('WWW-AUthenticate: Basic realm="My Private Junk"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
} else if (!isset($PHP_AUTH_USER)) {
if (($PHP_AUTH_USER != "admin") || ($PHP_AUTH_PW != "abc123")){
header('WWW-Authenticate: Basic realm="My Private Stuff"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required.';
exit;
} else {
echo"
<HTML>
<HEAD>
<TITLE>Hello</TITLE>
</HEAD>
<BODY>
<H1>It Worked!</H1>
</BODY>
</HTML>
";
}
}
?>
</xmp></font></pre><p>
<!-- Code -->

You should place this code around the
<!-- Code -->
<p><pre><font color=#008000><xmp><HTML></xmp></font></pre><p>
<!-- Code -->
tags. Where I have the
<!-- Code -->
<p><pre><font color=#008000><xmp><HTML></xmp></font></pre><p>
<!-- Code -->
tag is where you should insert the contents of the page. This applies to authenticating pages in general but may be used along with Webmin. Rather than having it up using it's own server you can use what you may already have and save on the processes. I never even looked at what Webmin uses. Well, just a thought for those of you with Apache and PHP.

Ooopsy, I forgot to give webmonkey.com credit for most of the code I used. It's universal code I know but they gave me the idea so I give them credit for the majority of it.

Can webmin be configured for FreeBSD and is there any particular issues I need to consider before doing this. I am using FreeBSD 3.1 with Apache and MySQL 3.19
Thanks

and it's wonderful. It really helps me a lot. I have different kinds of servers bsd macosx and redhat and I can really recommend it especially if you are using redhat cos' it's one of the best "webmin supported" systems.

I have FreeBSD 3.3 and it works just fine !
I am using it a long time already. Also mysql 3.22.... is supported correctly.

How does this compare to linuxconf via web browser?

There's not even a close comparision. linuxconf is very basic, and it pretty tricky to use. If you're already using linuxconf take a look at some of the screen shots on www.webmin.com/webmin and you'll see what I mean. One of the great things about Webmin is that there are tons of people writting additional modules for it, wheras linuxconf dosen't have any modular abilities (that I'm aware of).

Another great benifit is that Webmin works on about every version of Linux out there. Every linux distrubution is alittle different, but if you know how to use Webmin you can get stuff done no matter what distrubution it is.



Keith

It also works very well with SuSE Linux and I heartily recommend installing it.

YaST, the config program that comes with SuSE, is a breeze to use, but can be fussy about telnet clients. Webmin solves all those problems.

I have been using this for sometime.. I would make one minor sugestion though.... Setup wEBMIN WITH OPEN ssl!!!

Hi to all,
this is one heck of a cool tool, i start using it three days ago and and i really love it , i don't have the default apache running on the system "it's installed but does not run on start up" i did install the latest version of apache in /usr/loacl/apache and i start it manually every time , is there a way to let webmain see this apache and not the default one ????????? thanks..

You need to do the "Module Config" to tell Webmin where your Apache install is. This incldes the apache binary (httpd) and the paths to apachectl for the "start" and "stop" function.

If you put apache in /usr/local/apache and retained the stock directory hierarchy, then your path to the binaries would be:

httpd:
/usr/local/apache/bin/httpd

Start apache command:
/usr/local/apache/bin/apachectl start

Stop apache command:
/usr/local/apache/bin/apachectl stop

To get apache to start when the system boots, you have to install the httpd script (not binary!) in /etc/rc.d/init.d and then create symlinks to it in the appropriate /etc/rc.x directories. There's a URL out there that points right at a good tutorial on doing just this. EMail me and I'll reply with the URL when I find it later tonight...

Here's that URL:

http://www.e-gineer.com/instructions/starting-and-stopping-apache-automatically-on-redhat.phtml

I also like its ease of use, but for some reason, I am unable to access webmin from another location (versus my own network).

You have to add the IP you will be accessing it from to the list of allowed hosts. I forget where it is exactly but if you have used it already then you probably know where it is.

Tried that and also all allowed and it didn't work. It seems that I can only access via my local network.

Is the machine on the inside of your LAN? If so, how are you assigning the IP's?










privacy (GDPR)