Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I set storage space quotas/limits using the Linux/Unix file system?

0
Posted

Can I set storage space quotas/limits using the Linux/Unix file system?

0

While mod_dav itself doesn’t have the capability to support a traditional quota system, you can have apache run under each user’s account, thereby supporting it. Note that this requires apache to run as root, so think again before you do it. Well, first of all, you’ll need to recompile apache with -DBIG_SECURITY_HOLE flag set in CFLAGS. This will allow you to run apache as root, so it can later submit seteuid(2) call using authorization result. # As the name implies, this can lead to serious problem, but # I guess you can accept the risk. After recompilation is done, you have to decide how you want username (taken from web-based auth) to be mapped to uid on your system. If you just want username to be mapped to uid based on /etc/passwd, you should be OK just by installing mod_become available from http://www.snert.com/Software/Become/ If not, you’d have to write your own apache module, so apache will submit seteuid(2) call for proper uid mapped from given username. This itself is trivi

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123