Latest LQ Deal: Linux Power User Bundle
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 07-06-2006, 04:44 PM   #1
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Rep: Reputation: 15
Folder size restriction

I have a samba server running in my workplace which has about 50 users. Each user has a folder where they can store personal files, and I was wondering if anyone knows how to set each folder so that it can hold no more than 2048 MB of data.

Crash Systems
Old 07-06-2006, 05:43 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
What you want to do is setup quotas. It is added to the /etc/fstab so it works on a specific partition. So if you have a partition like /dev/hda* is mounted as /home then you can apply quotas to the /dev/hda* which is /home. But if /home is part of the / partition then it will not work this way. I hope you understand this.

Now a way around this is create a partition like /samba. Then add to fstab with quota setup. Now create a directroy of each user there and that they have ownership to thier directory. Then create a softlink to that partition to thier home directory. ' ln -s /samba/user1 /home/user1/samba '.

So look up quota here, at, and at google and learn about it.
Check out this post. Check the links in the second post on a virtual quota partition. Never tried but looked pretty good way without repartition.



quotas, samba

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
File size restriction while using Samba Sp0ngeWorthy Linux - Newbie 2 10-11-2005 03:59 PM
File name size restriction in console ?? adrianos Linux - General 2 03-06-2005 02:11 PM
File size restriction otisthegbs Linux - Networking 1 12-03-2004 08:39 AM
Disk size restriction gauol Linux - General 1 07-27-2004 03:52 PM
E-Mail Size Restriction Nezar Linux - Networking 1 11-23-2001 04:58 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:47 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