If you are useing Webmin system administration and you forget your password you will probably see how frustrating that there is not a way of remembering the password or reset it.
Webmin gives us the only possibility of authentication, but when you are not authenticated, you can not do anything. So we can not change the user password.

A solution still exist using the command line. For this, we need the installation directory, the directory configuration and the user name to reset password. If Webmin is installed in “/usr/share/webmin” and the settings are stored in “/etc/webmin” we can rewrite the admin user password by running the following command as root:

/usr/share/webmin/changepass.pl < config-dir > < login > < password >

*< config-dir >  –   is the directory where webmin settings are stored.
*< login >            –   is the username for which we want to reset password.
*< password >   -  is the new password.

Example:

Continue Reading…

Slurm – network load monitor

Valic —  July 15, 2010 — 1 Comment

Slurm started as a port of pppstatus to FreeBSD and now is a generic curses based network load monitor.

It was then transformed into a generic network load monitor that supports *BSD, Linux, HP-UX, and Solaris.

Slurm shows `realtime’ traffic statistics, has three graph modes, can monitor any network device, and uses curses to draw ascii graphics, including ascii theme support.

Step 1. Installation:

apt-get install slurm

Step 2. Slurm usage:

Continue Reading…

DarkStat is a simple Packet Sniffing Network Bandwidth monitoring Tool forDebian and other Linux distributions. DarkStat gives simple web based output with nice graphs and statistics , it will automatically refreshed. Darkstat uses a very low footprint and the memory, CPU usage.

Step 1. Installation:

apt-get install darkstat

Step 2. How to use darkstat:

1. Running darkstat for eth0 :

darkstat -i eth0

NOTE: Now darkstat will start and run in background.

Step 3. View stats:

In your Browser type the address:

Continue Reading…

hdparm is a command line utility for the Linux and Windows operating systems to set and view ATA hard disk hardware parameters. It can set parameters such as drive caches, sleep mode, power management, acoustic management, and DMA settings.

Step 1. Installation

apt-get install hdparm

Step 2. Usage

hdparm -t /dev/sda

Example:
Continue Reading…

rkhunter (Rootkit Hunter) is a Unix-based tool that scans for rootkits, backdoors and possible local exploits. It does this by comparing SHA-1 hashes of important files with known good ones in online database, searching for default directories (of rootkits), wrong permissions, hidden files, suspicious strings in kernel modules, and special tests for Linux and FreeBSD.

Step 1. Installation

apt-get install rkhunter

Step 2. How to use rkhunter

After install you can use rkhunter to scan your linux for rootkits with command:

rkhunter -c