PDA

View Full Version : [ubuntu] allocate space for each user



hemi519
October 1st, 2010, 01:35 PM
Hi All,

Iam new to the server side. and i want to know, if it is possible if i can have sub-users in my server and can i allocate a limited amount of space only. For example i am the root of server and now i can add another user with name john and he should be able to use only of 2GB out of my total hard-disk. Is this possible? or is there any other way to do this. Plz help me out if anyone knows this solution

abix_adam_pl
October 1st, 2010, 02:17 PM
The solusion for this is QUOTA ( http://www.ubuntugeek.com/how-to-setup-disk-quotas-in-ubuntu.html )
Also you may intrest in limits (http://manpages.ubuntu.com/manpages/lucid/man5/limits.conf.5.html)

Best regards,
Adam

hemi519
October 4th, 2010, 06:42 AM
thanks for that suggestion, But when iam trying to install the quota


apt-get install quota quotatool

iam getting this error


E: Some index files failed to download, they have been ignored, or old ones used instead.

hemi519
October 4th, 2010, 07:41 AM
the problem is solved iam able to install it

hemi519
October 6th, 2010, 10:57 AM
Iam in middle of adding users and allocating space for them, I am having a doubt here, i created a user with name John, now iam able to see John in my /home/ folder and also at the login screen. Am i in correct way. Is this wht happens when every new user is created. If it is wrong way help me out