LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem setting user quotas (https://www.linuxquestions.org/questions/linux-newbie-8/problem-setting-user-quotas-287802/)

Seventh 02-08-2005 03:00 PM

Problem setting user quotas
 
Hi all,

I have VSFTPD installed, and it's working really well.

What I want to do is create new users, assign them a home directory, and limit their disk quotas to certain sizes depending on a few things.

In this case, I made a user called 'ftp123test' and am trying to assign him a disk quota of 100MB.

In fstab, quotas are enabled. I ran 'edquota ftp123test' and set hard and soft to 100, like so:

Code:

[root@u15157697 /]# quota -v ftp123test
Disk quotas for user ftp123test (uid 10032):
    Filesystem  blocks  quota  limit  grace  files  quota  limit  grace
      /dev/hda3      0    100    100              0      0      0
[root@u15157697 /]#

Which I *think* is correct. However when I login to the FTP server as him, I still get the "Quotas off" message.

Code:

200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-r--r--  1 ftp123test ftp123test    31503 Feb  8 20:39 ViperVsEvo1-vi.jpg
-rw-r--r--  1 ftp123test ftp123test  110984 Feb  8 20:40 artpad.jpg
226-Transfer complete.
226 Quotas off
ftp>

What am I missing? Thanks in advance. :)

Seventh 02-08-2005 03:04 PM

And here's my /etc/fstab:

Quote:

[root@u15157697 /]# cat /etc/fstab
/dev/hda3 / ext3 defaults,usrquota 1 1
/dev/hda1 /boot ext3 defaults 1 2
Home directories (the only place I want Quotas) are on hda3.

Seventh 02-08-2005 03:07 PM

Also tried:

Code:

[root@u15157697 /]# quotaon -avug
/dev/hda3 [/]: user quotas turned on
[root@u15157697 /]#

Same message logging into FTP though. :(

Seventh 02-09-2005 07:47 AM

Bump~

darkRoom 02-09-2005 10:41 AM

Try using 'quotacheck'

Also 'repquota -a' will show all users quotas and statuses

Seventh 02-10-2005 09:38 AM

Quotacheck returns me nothing, no errors either.

repquota - a returns:

Code:

ftp123test +-    148    100    100  7days      3  100  100
So it looks like they're on, but just not being recognized in my FTP software. :(

Seventh 02-11-2005 10:03 AM

:\ Still can't figure this out.


All times are GMT -5. The time now is 01:58 AM.