Webmin, HDD Quotas & Proftpd on Linux
For people who like to buy their own dedicated server and maybe share with friends, webmin is a great webbased application to help manage your server create user account set HDD quotas, install packages etc, for this tutorial we will install HDD quotas, webmin & proftpd installed, you can also install pureftpd for your ftp server but today we will go the easy way and setup proftpd...
1: Open up putty and login as root or superuser
2:Type
Code:
apt-get update && apt-get upgrade
3: type
Code:
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.500_all.deb
4: type
Code:
dpkg --install webmin_1.500_all.deb
now on ubuntu thats all you need to setup webmin, but 9/10x on debian you will get an error, that your missing packages, so we install the following packages.
5:
Code:
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
6: Now you can login to webmin via
Code:
https://yourdomain:10000/
but we haven't finnished yet, to set quotas you need to do a little more
work
:doh:
7:Type
Code:
apt-get install quota quotatool
8: We open /etc/fstab like this
9: have a look at your file system you will either have a /home partition or just a / partition, what we want to do is add ,usrquota,grpquota to the partition with the mount point / or /home. mine looks like this. & see were I have added ,usrquota,grpquota after errors=remount-ro
Code:
/dev/sda1 / ext3 errors=remount-ro,usrquota,grpquota 0 1
10: This is how the whole fstab looks
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 errors=remount-ro,usrquota,grpquota 0 1
/dev/sda5 none swap sw 0 0
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
11: Type
Code:
touch quota.user quota.group
12: Type
Code:
chmod 600 quota.user
13: Type
Code:
chmod 600 quota.group
14: Now type mount -o remount /home or mount -o remount / (depending on how your partition is)
15: Now login to webmin and search quotas in the search bar on the left hand side of the screen.
16: After the search you will see in the search bar a few options the first one should be ""Disk Quotas"" Enable Disk Quotas, by clicking on ""Enable Disk Quotas"" which will be in the far right column of ""Disk Quotas"
17: You now have webmin installed with disk quotas, you can go to Disk Quotas in the laft column either under ""unused moduals or system""
18: Click on Home user quotas and it will gve u a list of all the users on your server, and then just set the quotas as u like...
Thats a brief on how to setup Webmin and Proftpd with user quotas...
Enjoy...