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
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.
- 03-24-2008 #2
- 03-25-2008 #3
- 03-28-2008 #4
This is the purpose of quotas and as easy as it getsI 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
Add into /etc/fstab
/home/user1/user1-disk.ext3 /home/user1 rw,loop 0 0
mount -o loop=/dev/loop0 /home/user1/user1-disk.ext3 /home/user1
- Copy size larger than 20MB sure you will get error message "no space left"
- run ~$df -m
- run ~$mount
- 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.