LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   issues with user quotas.. (https://www.linuxquestions.org/questions/linux-general-1/issues-with-user-quotas-103313/)

oeln 10-13-2003 01:42 AM

issues with user quotas..
 
I've got user quotas on, or at least I get that impression; but it's not working. I'd be grateful for insights on this:

I've edited /etc/fstab to include the following on the first line:

LABEL=/ / ext3 defaults,usrquota 1 1

I'd like the quota to be on / (I've only got the one partition - info I've found online in other locations not only indicates this ought to be okay, but gives instructions for it).

I've then done 'touch /quota.user', logged out & back in, done quotacheck & got the following output:

quotacheck: WARNING - Quotafile //quota.user was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 11000 directories and 200000 files

I've been informed that the error I got on the first line was okay to ignore (if this is incorrect, I'd be open to that but I've got no idea why I'm getting it).

Once I get that far, I'd like to impose quota of 10mb on the user 'odin'. I do the following: 'edquota -u odin' & indicate 10000 & 11000 (for 10mb quota, 11mb hard limit). I then did 'edquota -t' in order to indicate a grace period of 1 day.

If I log in to user odin & input 'quota -u' it gives me the following:

Disk quotas for user odin (uid 1000):
Filesystem blocks quota limit grace files quota limit grace
/dev/hda2 52 10000 11000 13 0 0

Issue I've got is this: I then ftp out & get a file that is over 10mb & it lets me do it, gives me no indication that I'm going over my limit, etc. The output I get for quota -u is identical (I've been informed that it ought not be). In other words, I get the impression it's not working.

One other thing: if I then would like to impose odin's quota on a user 'olorin', I would do 'edquota -p odin -u olorin' but I log into olorin & the output I get for quota -u is:

Disk quotas for user olorin (uid 1001): none.

I've of course got little to no idea what's going on here or why I've got these issues. Is it obligatory that I do a quotaon in there? If yes, when or where..

I'll owe you a favor if you get back to me with info on this that gets me over these issues. Thanks,

- Oeln

unSpawn 10-15-2003 06:13 PM

(I've only got the one partition - info I've found online in other locations not only indicates this ought to be okay, but gives instructions for it)
Depends on if it's a server or a toybox really. Minimal layout should have a separate root (aka "/"), /home, /tmp and /var. /home because of portability, /tmp and /var because of filling with temp or logfiles. If you only got "/" then anyone who can fill that disk will make your box stop do a lot of things.


I've been informed that the error I got on the first line was okay to ignore (if this is incorrect, I'd be open to that but I've got no idea why I'm getting it).
Maybe try running "quotacheck -bfvmi /" to build quota files first (it'll make backups) since the rest of your questiosn depend on it.


All times are GMT -5. The time now is 11:50 PM.