Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-26-2001, 09:04 PM   #1
Registered: Nov 2001
Location: singapore
Posts: 120

Rep: Reputation: 15
Restricting user home directory ?

How do i restrict the amount of space user can have in their home directory ?? pls advise...thanxxx....
Old 11-26-2001, 09:20 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
userdef.LABEL=/lan none 300000 350000 -1 -1 0 604800
groupdef.LABEL=/lan none 9000000 100000 -1 -1 0 604800


Last edited by DavidPhillips; 11-26-2001 at 09:59 PM.
Old 11-27-2001, 04:40 AM   #3
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 288

Rep: Reputation: 46
Who says he has linuxconf?
Old 11-27-2001, 06:44 AM   #4
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit a user to their home directory redgore Linux - General 2 08-04-2009 10:45 AM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 02:04 PM
Restricting user directory permissions britishnemesis Linux - Security 1 11-17-2003 06:10 AM
adding a new user doesn't create a home directory abrakadabra Linux - General 6 08-09-2002 08:11 PM
How is your /home/user directory organized cyris Linux - General 4 04-09-2002 05:31 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration