LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating 1000 users with disk quota of 30MB (https://www.linuxquestions.org/questions/linux-newbie-8/creating-1000-users-with-disk-quota-of-30mb-4175423351/)

nblab 08-22-2012 12:53 AM

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.

chrism01 08-22-2012 01:02 AM

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/


All times are GMT -5. The time now is 07:24 AM.