LinuxQuestions.org
Help answer threads with 0 replies.
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 07-06-2006, 05:44 PM   #1
crashsystems
Member
 
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, 06:43 PM   #2
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
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 www.linuxquestions.com, 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.
http://www.linuxquestions.org/questi...36#post2071636
http://www.linuxquestions.org/questi...69#post2072769

Brian1
 
  


Reply

Tags
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 04:59 PM
File name size restriction in console ?? adrianos Linux - General 2 03-06-2005 03:11 PM
File size restriction otisthegbs Linux - Networking 1 12-03-2004 09:39 AM
Disk size restriction gauol Linux - General 1 07-27-2004 04:52 PM
E-Mail Size Restriction Nezar Linux - Networking 1 11-23-2001 05:58 AM


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

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