Archive for the 'Webmin Support' Category

SBDavid

Changing the Webmin Port

Changing the Webmin Port from the Command Line

Changing the port on which Webmin runs after installation is also a pretty simple process. Simply edit the file miniserv.conf in the /etc directory where your Webmin configuration files were installed (this is likely one of the following: /etc/webmin, /usr/local/webmin/etc, or /opt/webmin/etc). You’ll find a port directive. Change this to whatever port you need Webmin to listen on, and then restart the Webmin web server.

Restarting the Webmin server can be accomplished in a few different ways depending on the OS and version. Under Red Hat Linux and its derivatives, for example, you would use the standard service command:

#/sbin/service webmin stop
#/sbin/service webmin start

If your OS does not have a standardized service control tool like service, you may use the standard Webmin stop and start scripts located in the Webmin etc directory:

# /etc/webmin/stop; /etc/webmin/start

The miniserv.conf file contains many other options, but you will only need to edit a few manually. Other common problems that users run into include restricting their access by IP. This can cause them a problem if their service provider changes the IP. Simply mistyping an IP can also lead to the same trouble. The remedy for this problem is to add the correct IP to the allow= directive and then restart the Webmin server.

SBDavid

Configuring Your Firewall For Webmin

The simplest way to open up port 10000 is to use one of the Webmin firewall management modules, such as Linux Firewall, BSD Firewall or IPFilter Firewall. However, to access this you’ll need to run a brower on the same system as Webmin, and access it via the URL http://localhost:10000/.

The alternative is to login as root via SSH, and manually edit the firewall configuration file. On Redhat and derived systems, this is /etc/sysconfig/iptables, while on Debian it is /var/lib/iptables. The line you need to add is :

-A INPUT -p tcp -m tcp –dport 10000 -j ACCEPT

Once this line has been added, you will need to apply the firewall configuration. This is typically done with the command

/etc/init.d/iptables restart

If you Forgot your webmin password but you’re still able to login to the server via SSH you still may be in luck.
There is a webmin utility that will let you to reset the current webmin admin password in easy way.
Look for a file called changepass.pl as part of the webmin download.

At the prompt type:

  1. # /usr/libexec/webmin/changepass.pl /etc/webmin username newpassword

replacing /etc/webmin with the path to the webmin config files, username with your username, and newpassword with your new password.

« Prev