Allot space to a new user
Hi
How can i allot(limited) space to a newly created user in linux? Is it possible to monitor the newly created users disk space usage using c++ which should be faster and reliable, if so please explain in detail. thanks |
I'm not sure what you're asking.
If you're asking how to limit a users disk usage, then you would search for "disk quotas" on the forum, there are already a few really good threads that will explain it very well. If you're asking how to make a program that limits a new users disk space, then I have no idea. |
yes, i got answer for the first question by searching this forum. And i need to know how to get the disk space used(quota check) by the specified user using C++.
|
I think quotactl is the function you are after. Having never used it I'll let the manpage do the talking (man quotactl).
Alternately you could parse the output from the quota command. Hope that helps, |
All times are GMT -5. The time now is 11:53 AM. |