Re: [ILUG] (no subject)

From: Dave Neary (dave.neary at domain palamon.ie)
Date: Thu 30 Aug 2001 - 13:34:21 IST


hrishy wrote:
>
> Hello
>
> I need a shell script to craete 100 users .could
> anybody tell me how to do it.
>
> regards
> hrishy

[ot] on bsd, use jot to generate the usernames.
On linux you can use seq to do something similar.

The following will generate 100 users with the username user1, user2,
...user100, with a default password "letmein".

#!/bin/sh

for i in `seq -f "user%g" 100`; do
adduser $i -p letmein
done

Dave.

-- 
David Neary,               E-Mail dave.neary at domain palamon.ie
Palamon Technologies Ltd.  Phone +353-1-634-5059


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:54 GMT