Monday, June 4, 2007

Shell Script

# Creating 50 users through a small script and setting their password as "password"
for x in {1..50}
do
useradd user$x; echo "password" (Place the Pipe symbol here) passwd --stdin user$x
done

No comments: