LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-26-2001, 09:04 PM   #1
chuck77
Member
 
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....

cspoh77@yahoo.com
 
Old 11-26-2001, 09:20 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
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


:-)


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

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

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


Reply


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


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

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