LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Restricting user home directory ? (https://www.linuxquestions.org/questions/linux-general-1/restricting-user-home-directory-9243/)

chuck77 11-26-2001 09:04 PM

Restricting user home directory ?
 
How do i restrict the amount of space user can have in their home directory ?? pls advise...thanxxx....

cspoh77@yahoo.com

DavidPhillips 11-26-2001 09:20 PM

You will need to set disk quotas on them


You can do it in linuxconf

Config >

access local drives >

click on the mount you want to setup

click on options

scroll down in list to bottom

select user and or group quota enabled


save that and go to set quota defaults back in main Config window

the mounts you put quotas on will be listed and you can configure them



this will result in /etc/fstab looking like this for the mount with the quota

LABEL=/lan /home ext3 exec,dev,suid,rw,usrquota,grpquota 1 2

your quota.conf file would be like this

[root@Alpha root]# cat /etc/quota.conf
[base]
userdef.LABEL=/lan none 300000 350000 -1 -1 0 604800
groupdef.LABEL=/lan none 9000000 100000 -1 -1 0 604800


:-)


SlCKB0Y 11-27-2001 04:40 AM

Who says he has linuxconf?

DavidPhillips 11-27-2001 06:44 AM

If he dont have it then I guess thats why I put the other info in there!


All times are GMT -5. The time now is 02:45 AM.