Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-13-2004, 11:17 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 16

Rep: Reputation: 0
Allot space to a new user

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.

Old 08-14-2004, 12:20 AM   #2
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
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.
Old 08-14-2004, 02:23 AM   #3
LQ Newbie
Registered: Aug 2004
Posts: 16

Original Poster
Rep: Reputation: 0
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++.
Old 08-14-2004, 08:52 AM   #4
Registered: Jul 2004
Location: Coeur d'Alene Idaho
Distribution: Slackware
Posts: 41

Rep: Reputation: 15
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,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
how to allot swap memory after installation of linux jphani Linux - Hardware 5 05-15-2005 03:27 PM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 11:46 AM
limit user HD space pezplaya Linux - General 3 04-26-2004 05:36 PM
User space used grub Programming 6 06-11-2003 03:36 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration