I think i may have it now guys, well four days to get it going and 7 reboots
First thing i did was add a user into the system ( adduser tommy ) then his password ( passwd tommy )
Then i hoped into init 1 mode
Then i type the following command in vi /etc/fstab
Then i edited the file and added usrquota,grpquota to the top line so it looks like this
Code:
LABEL=/ / ext3 defaults,usrquota,grpquota 1 1
then i type in ( mount -o remount / )
then i type in the following
rm -rf /home/quota.user
rm -rf /home/quota.group
touch /home/quota.user
touch /home/quota.group
chmod 0600 /home/quota.user
chmod 0600 /home/quota.group
then i type in quotacheck -vagum
it came up with the following
Code:
quotacheck:Scanning/dev/hda2 [/] *
* means its flashing
then i type in edquota -u tommy
I added 50000 hoping its 50MB worth
then i type in init 3 to get out of int 1 mode
then i rebooted
then on reboot where all the green oks are, no errors but the very last one, ( where do i find the error boot log to see what the error is, its going to fast for me to see. some thing about events.
once booted up i type in
repquota /
which shows me this
Code:
[root@rockinghamgateway root]# repquota /
*** Report for user quotas on device /dev/hda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 1964445 0 0 139823 0 0
daemon -- 16 0 0 5 0 0
lp -- 8 0 0 2 0 0
rpm -- 42308 0 0 120 0 0
vcsa -- 0 0 0 128 0 0
rpcuser -- 32 0 0 8 0 0
smmsp -- 12 0 0 3 0 0
apache -- 48 0 0 12 0 0
squid -- 16 0 0 4 0 0
webalizer -- 24 0 0 6 0 0
xfs -- 8 0 0 3 0 0
named -- 36 0 0 9 0 0
ntp -- 12 0 0 3 0 0
postfix -- 88 0 0 22 0 0
mailman -- 0 0 0 1 0 0
mysql -- 16 0 0 4 0 0
postgres -- 28 0 0 8 0 0
tommy -- 28 50000 0 8 0 0
[root@rockinghamgateway root]#
[root@rockinghamgateway root]#
I see where i added tommy too, does this look right.
I'll turn on vsftpd and see if i can upload a file bigger than 50MB and see what happens
TT
Well it still let me upload over 50MB
I edited the vsftpd
and made tommys public_html
Code:
[root@rockinghamgateway root]# /etc/init.d/vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@rockinghamgateway root]# /etc/init.d/vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@rockinghamgateway root]# mkdir /home/tommy/public_html
[root@rockinghamgateway root]# chown tommy /home/tommy/public_html
[root@rockinghamgateway root]# chmod 0755 /home/tommy/public_html
[root@rockinghamgateway root]# cd /home/tommy/public_html
[root@rockinghamgateway public_html]# ls
sovietufo2.rm
[root@rockinghamgateway public_html]# ls -al
total 57024
drwxr-xr-x 2 tommy root 4096 Sep 4 10:48 .
drwx------ 3 tommy tommy 4096 Sep 4 10:41 ..
-rw-r--r-- 1 tommy tommy 58322164 Sep 4 10:48 sovietufo2.rm
[root@rockinghamgateway public_html]#
do i have to Enforce Quotas ?
like so
#!/bin/bash
quotacheck -vagu
how do i make a cron job ( use webmin )
TT
and to top it off i'm still trying to get it going..
any ideas guys