thepallace
Technical User
Is anyone has a script to add user on a AIX box. I need to add 50+ users. smitty would take time to accomplish this.
Thanks,
JA
Thanks,
JA
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#
# [Jun 08 2004, 14:15:42]
#
x() {
LIST=
SET_A=
for i in "$@"
do
if [ "$i" = "admin=true" ]
then
SET_A="-a"
continue
fi
LIST="$LIST \"$i\""
done
eval mkuser $SET_A $LIST
}
x pgrp='users' groups='users,printq' home='/home/users/testuser' shell='/bin/ksh' gecos='Test User' testuser