LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Allot space to a new user (https://www.linuxquestions.org/questions/programming-9/allot-space-to-a-new-user-217372/)

ArulPrabhuT 08-13-2004 11:17 PM

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

MikeZila 08-14-2004 12:20 AM

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.

ArulPrabhuT 08-14-2004 02:23 AM

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++.

ogmoid 08-14-2004 08:52 AM

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.