Re: Script for the creation of multiple user accounts

2010-12-12 Thread Otto Moerbeek
This is not OpenBSD specific but check jot(1) and xargs(1). Something like jot -w user 6 | xargs -n 1 useradd ... Will do. -Otto On Sun, Dec 12, 2010 at 02:30:25PM +0400, OpenBSD Geek wrote: > Hi, > > I want to be able to create with a batch file multiple user account

Script for the creation of multiple user accounts

2010-12-12 Thread OpenBSD Geek
Hi, I want to be able to create with a batch file multiple user accounts like for example inca1,inca2 ... inca6 useradd -d /home/inca1 -s /bin/ksh -m -G incagroup -p passwordencrypted user1 useradd -d /home/inca1 -s /bin/ksh -m -G incagroup -p passwordencrypted user2 useradd -d /home/inca1 -s /bi