Results 1 to 8 of 8
Hi.
How do I limit the space a user can save/store files. Say I want each user just to have 500MB of space. How/where do I define that.
I'm running ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-24-2008 #1
Limit user space
Hi.
How do I limit the space a user can save/store files. Say I want each user just to have 500MB of space. How/where do I define that.
I'm running a Ubuntu 7.10 server, fresh install, with Apache, PHP and MySql.
J1s
- 03-24-2008 #2
Enable filesystem Quota to limit disk space usage for users and/or groups.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-25-2008 #3
- 03-28-2008 #4
This is the purpose of quotas and as easy as it gets
I am on a journey to mastering Linux and I got a bloody long way to go!!!
- 03-28-2008 #5
Use virtual filesystem with "dd"
example set user1 home folder for 20MB
~$:dd if=/dev/zero of=/home/user1/user1-disk.ext3 count=40960
Make ext3
~$:mkfs.ext3 /home/user1/user1-disk.ext3
Add into /etc/fstab
/home/user1/user1-disk.ext3 /home/user1 rw,loop 0 0
Mount
mount -o loop=/dev/loop0 /home/user1/user1-disk.ext3 /home/user1
Testing
- Copy size larger than 20MB sure you will get error message "no space left"
- run ~$df -m
- run ~$mount
ariyossss
- 03-28-2008 #6
Now we're talking. But what if I have a lot of users? More than 50.
- 03-28-2008 #7
It's easy! go for quota ...
- 03-29-2008 #8
OK, I'll give it a try during the weekend. Thanks a lot.


Reply With Quote
