LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-23-2006, 05:40 PM   #1
dalponis
Member
 
Registered: Jan 2006
Location: Alberta, Canada
Distribution: Fedora 19 x86_64
Posts: 96

Rep: Reputation: 15
Disk Quotas or What?


I want to allow my SSH users to only have 10MB in there /home directory. How do I do this? Quotas? Even then, how do I set up quotas?
 
Old 01-23-2006, 05:48 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I've given this a lot of thought. Certainly quotas can work. I've been toying with the idea of having a container file for each user account. The container file would be formatted to contain a file system and it would be mounted to each user's home directory through a loop device.

I don't know whether quotas or container files would produce more CPU overhead. More experiments are required. It's just an idea that I've been toying with.
 
Old 01-23-2006, 06:37 PM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Quotas should work but the way I first see it is limit the size to the entire users home directory to 10mb. Of course /home needs to be a partition of its own because you will add a few variables to the /etc/fstab for the /home partition. Been a while since I created quotas.

Example
Code:
/dev/hda2       /home    ext2    defaults,usrquota,grpquota       1   1
Now another thought is this.
* Create a partition and mount it as ssh. In it create a directory for each user using thier name.
* chmod to allow only the owner to read and write. ' chmod 600 /ssh/username '
* Now create a softlink to thier ssh/username in thier home directory. ' ln -s /ssh/username /home/username/ssh '
* Edit /etc/fstab to add quotas to /dev/hd** /ssh partition like above.
* Setup quota limits.
* Unmount /ssh and remount

Hope this helps.
Brian1
 
Old 02-04-2006, 08:53 AM   #4
dalponis
Member
 
Registered: Jan 2006
Location: Alberta, Canada
Distribution: Fedora 19 x86_64
Posts: 96

Original Poster
Rep: Reputation: 15
Holy big words Batman! Heh, I mean, I have no idea how to so _most_ of that stuff
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Quotas mdk3 Linux - General 12 07-06-2005 05:41 PM
Disk quotas on JFS? jisoo23 Linux - General 1 03-03-2005 04:29 AM
Disk Quotas in ProftpD amdathlonboy Linux - Software 0 06-21-2004 03:42 PM
disk quotas johnnycash Linux - General 1 03-16-2004 09:12 AM
disk quotas skeletal29 Linux - General 1 10-13-2002 05:42 PM


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

Main Menu
Advertisement
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