Adding many machine accounts ?

Richard Kail e8903122 at student.tuwien.ac.at
Sat May 1 12:46:00 GMT 1999


Hallo !

On Sat, 1 May 1999, Michael Glauche wrote:

>    is there some easy way to add quite a lot of machine accounts ?


#!/bin/bash
for i in `seq 0 1000`
do
	useradd -d /tmp "M$i\$"
	smbpasswd -m -a "M$i"
done

creates 1001 machine accounts. (not tested)

Kind regards,

Richard




More information about the samba-ntdom mailing list