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 |
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 |
All times are GMT -5. The time now is 03:49 PM. |