Webmin And Quota configuration in debian

 Webmin Configuration

What is Webmin?

Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and forms (and Java for the File Manager module), you can setup user accounts, Apache, DNS, file sharing and so on.

Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules.


Installing Webmin in Debian


#apt-get install webmin webmin-core


After installation If you want to access webmin from any machine in your network edit the /etc/webmin/ miniserv.conf file change the “allow” option







Once you change this and save your file and restart the webmin using following command


/etc/init.d/webmin restart


Go to your browser and type:- https://ipaddress:10000 and you can login using the debian linux root as username and password for root.


If you ou need any webmin modules for you software check here


Update Webmin online from your machine

Click on Webmin Configuration under webmin tab from here click on Upgrade Webmin and select the Latest version from option now click on upgrade webmin button this will start the webmin upgrade from webmin site

Downloading ..
Downloading (10324511 bytes) ..
    Received 1024 bytes (0 %)
    Received 1033216 bytes (10 %)
    Received 2065408 bytes (20 %)
    Received 3097600 bytes (30 %)
    Received 4130816 bytes (40 %)
    Received 5163008 bytes (50 %)
    Received 6195200 bytes (60 %)
    Received 7227392 bytes (70 %)
    Received 8260608 bytes (80 %)
    Received 9292800 bytes (90 %)
    Received 10324511 bytes (100 %)
.. Download complete.
No package signature verification done.

Running script to upgrade Webmin .. Please wait a minute until it is complete before continuing.

Other available options

From local file
From uploaded file
From ftp or http URL


Quota configuration in debian


When you run a multi-user system it's possible for a single user to the system, by filling their home directory with a lot of files, and filling a disk so that other users have no space of their own. Quotas are a system of preventing this. It's possible to setup limits on the amount of space a single user, or a single group, can use.

Using quotas on Debian is very Easy as the Debian kernel packages all have quote support compiled in.

There are two ways to use quotes:

  • Per user
  • Per group


When using per-user quotas you are effectively giving a limit on how much disk space the specific user may consume. In the case of per-group quotas you're giving a limit on the total disk usage of all members in that group combined.


Generally I find it much more useful to apply quotas on a per-user basis, as this way you dont have to work out which memeber of a group is consuming all the space.

To setup quota usage on your system you'll need to do three things:

  • Mount your filesystems with quota support
  • Install the quota software
  • Configure your limits

Installing Quota in debian

#apt-get install quota quotatool

As you installed the software you will have been prompted to see if you wish to email your users when their quotas are exceeded, this is their soft limit.

Edit /etc/fstab to look like this (I added ,usrquota,grpquota to the partition with the mount point /):

# /etc/fstab: static file system information.


# <file system> <mount point>   <type>  <options>       <dump>  <pass>

           proc            /proc           proc     defaults            0           0

          /dev/sda1       /                 ext3    defaults,errors=remount-ro,usrquota,grpquota  0       1

          /dev/sda5       none            swap       sw              0           0

          /dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0

            /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

Then run:

touch /quota.user /
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon –avug

 If you want to manage quotas with graphical webinterface you need to install quota webmin module

To Install webmin module for quotas

#apt-get install webmin-quota

Now you login in to the webmin and you can see quota configuration

How to check Warnquota is configured or not?

- email warnings are triggered by warnquota
- warnquota takes its configuration in /etc/warnquota.conf
- warnquota is ran daily by default : /etc/cron.daily/quota

Here is my /etc/warnquota.conf

MAIL_CMD         = "/usr/sbin/sendmail -t"
FROM               = "[email protected]"
SUBJECT           = You have exceeded your quota
CC_TO             = "[email protected]"
SUPPORT          = "[email protected]"
PHONE             = "01 02 03 04 05"
MESSAGE         = "quota exceed for this user"
SIGNATURE       = "Your signature"

Try dpkg-reconfigure -plow quota, it should ask you questions
about warnquota configuration.

BTW, if your use of quota is critical, test it before production
or with a test account by lowering quota to a very small level
and by running manually /etc/cron.daily/quota.