LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux quotas (https://www.linuxquestions.org/questions/linux-newbie-8/linux-quotas-610992/)

shishirkotkar 01-04-2008 12:34 AM

linux quotas
 
i have a ltsp network set up on a suse platform

i want to use linux quotas on suse to provide limited disk space on
LTSP server

how do i use linux quotas in suse???

Dinithion 01-05-2008 09:18 AM

I have never configured quota on suse, so there might be some differences from what I am used to.

First of all, you need to enable quota in your kernel. File systems -> Quota support, and choose v2. You will need some basic tools. They are probably installed by default, and if not I'm guessing they can be installed using yast.

I don't know where you want your quotas, (spool, home folders or whatever. But that isn't very important). Then you add usrquota to /etc/fstab on the options field on the partition you want to use quotas. For the changes to take affect, you need to remount the partition or reboot. If the destination is /home and it is a separate partition you might have to enter runlevel 1 to be able to remount it.
mount -o remount /home

The quota data is stored in the aquota.user file in the root of the partition you want to use quotas. This will not exist automaticly, so you have to create this. i.e:
quotacheck /home
This might take a while, as it is calculating used space and inodes of each user. When it is done, you can modify this file by hand, or use the tool edquota. (edquota <username>). You can have quotas for groups aswell. This is stored in aquota.group.

When this is done, activate quotas with quotaon.

This is a pretty basic description. And it might not work just like this as I have never done this on suse. But anyway you have some clues on how it is done :)


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