Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Disk Space for New User

Status
Not open for further replies.

Bipasha

Programmer
Feb 28, 2001
23
US
I created few new users on my Linux Server and have assigned them login ids, passwords, group ids and home directories.

I also want to assign specific disk spaces for each new user/account. How can I do this??
 
Bipasha,

I haven't played with this, but you may want to review the man pages for quota, quotaon, quotacheck, edquota, repquota, and any other related commands listed at the bottom of these man pages.

From what I've read, here are the high-level steps:

1. Set options in /etc/fstab - add userquota and grpquota to the filesystem's option list

2. Create quota.user and quota.group files at the top of the filesystem and set their protection bits for root access only

These are the user and group quota databases for this filesystem

3. Run quotacheck to initialize the databases
e.g. quotacheck -avug

4. Verify the initialization of the quota databases
ls -al /filesystem/quota.*

5. Run quotaon
e.g. quotaon -a

6. Verify that system initialization script will turn on quotas when your system boots

7. Create a crontab entry to run quotacheck regularly
e.g. quotacheck -avug

8. Set quotas for users/groups

Someone with hands-on experience may be able to provide more input or correct any errors in the above list.


Good luck!

Biker
Systems/Network Administrator
LiveFire Labs - Hands-On Technical e-Learning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top