I need to set up a hard disk with quotas. So I though, first I'll try it on the /home partition, cos I really didn't know what I was doing.
Fresh install of LM8.2, cos I know that's sound. Did a google for quotas howto's Got one on redhat, mmmm I though, they must all be the same as regards quotas Install the quota tools I make my quota.user and quota.group in the root of /home. Then I go into diskdrake and enable quotas for that partition. check /etc/fstab, yep all there, group and users, for /dev/hda6 Fine so far :o) Then it said ( the howto I found ) you have to activate the quota.user and quota.group files before you reboot, cos at reboot it'll complain. so I did, it said do the following edquota -u me and got an error along the lines, no files system found with quotas enabled. Mmm So I rebooted and on the boot got summat along the lines of aquota.users and aquota.group on path /dev/hda6/home not found. [FAILED] Derrr, where did the 'a' come from. so a man on edquota mentioned quota.user as type 1 and aquota.user as type 2 Didn't mention anything on me howto about type 1 or type 2 quotas. so i created aquota.user and aquota.group, did all the above again, but still nothing but complaints form mr lm. Again, console, as root, edquota -u me still couldn't find a file system with quotas enabled. Ok so off I went searching again. Found some info at Ozzzy's Mandrake Place. There is says enable quotes in fstab, done that, and then run quotacheck -acug Did that, refused to do it on a mounted partition. So unmounted and did it again, said the partition wasn't mounted. so I did the next line on his howto quotacheck -acmg ---- a little force needed - but with a warning about, don't do this really That ran through and I could then use edquota -u me, which popped up vi with the bits I needed. So far so good. Rebooted but, where the bits come up about enabling quotas on /dev/hda6/home, I got quotas in use could not summat! Mmmm, i'll ignore that for a minute. so I set up some limits, in my test case I set soft as 500 and hard as 550, now from what I have seen surfin, I took 500 to be 500Mb and 550 to be 550Mb. Saved it, and went away to another machine to start copying stuff over, cos I didn't and still don't know what would happen when I exceed my limit. Well not much happened. So I thought, reboot, so I did, and logged on, but got the 'this is your first use of linux and please choose a desktop',, Hu, what, so I just clicked cancel and went strait back to the logon window,, Hu. so I logged on as another test user and the same thing happened. Logged in as root and got my desktop as expected, Hu!!!!! Went to a windows machine and connected via NWNH, strait into me home folder, tried to copy a file over, couldn't, disk full, whooooow, its workin I thought, but I couldn't copy anything, not even an empty file. So I ssh'd into the machine and did a quotacheck, I had apparently set my limits toooo low, cos they apparently were considerable less than I actually had, or were they, I'd set 500, and quotacheck said I was using 17678 ( a new LM install and still virgin ). so, through ssh I went to root and changed me values. Still couldn't save anything, even though I had set the new values to 25000, which is supposed to be 2.5Gig ( I think ), anyway. Tried again logging into the lm machine, nope strait to login screen again. So another remote ssh and I disable quotas, could now save files into me home from remote, and could log in at login prompt. Is this right, cos what's worrying me is, if a user exceeds his quota from a remote machine, how is he going to log in on the host machine to remove any of his work ? Sorry for the long winded bits above Could I also ask the quota wizards, do I have to run checkquota regularly to keep the users quotas current, or do they all take care of themselves. i.e. if joe blogs goes past his soft quota and starts the grace period count down, and then goes below his soft quota, is the grace period automatically cancelled or is it only done on running checkquota ? And is there somewhere to put a message he is shown remotely when he does exceed his soft limit or when he reaches his hard limit If anybody can give me advice and past experience on quotas id be eternally grateful. Ken, quotaconfussed
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________