Monday, September 6, 2010

Add multiple user in solaris

1:Create a file username , in which add  all new usernames.
2: Run the below script

#!/bin/sh


x=201

for i in `cat /tmp/username`

do

x=`expr $x + 1`

useradd -u $x -g 10 -m -d /export/home/$i -s /bin/sh $i

done

No comments:

Post a Comment