LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2012, 12:53 AM   #1
nblab
LQ Newbie
 
Registered: Jul 2012
Posts: 4
Blog Entries: 1

Rep: Reputation: Disabled
creating 1000 users with disk quota of 30MB


i need to create 1000 users on RHEL 4. i have created a shell script to do so.

for i in `userlist.txt`
do
useradd -d /mnt/new/$i -p $i $i
chown -R $i:$i /mnt/new/$i
echo "useradded- $i"
done
but i want to limit each users disk quota.

please tell me how should i proceed.

one more thing i want to know is what is the default quota of a linux user in RHEL4 created through useradd command.
 
Old 08-22-2012, 01:02 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Here's the RHEL4 HOWTO http://www.linuxtopia.org/online_boo...sk-quotas.html.
You may be able to take advantage of the -p (prototype) switch if RHEL4 supports it http://linux.die.net/man/8/edquota
BTW, RHEL4.x went out of regular support in February; have you paid extra for the 'Extended Support' option?
http://www.redhat.com/security/updates/errata/
 
  


Reply


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
Adding a disk quota to all samba users on LDAP jax8 Linux - Server 6 12-29-2009 03:33 AM
Setting Disk Quota for Bulk Users haariseshu Linux - Server 3 06-10-2009 08:51 AM
About disk quota for users stg_in2009 Linux - Server 2 04-27-2009 03:42 AM
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM
Disk Quota -- restricrting users as well as stopping Denial of Service Attacks tataiermail LinuxAnswers Discussion 0 07-10-2007 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 AM.

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