HI,
I have a script I downloaded and have been able to make a couple of mods 
to. The script is called Addpopusers and takes input from a text file and 
creates the users for me. However now I do not want to create passwords as 
the system will authenticate against an NT server using PAM. The users are 
needed to allow for email from within AUC. Can someone look at the code 
below and tell me how to modify this to prevent the creation of a password 
for each user. My alternative is to let it create identical passwords and 
then use an editor to edit 'shadow'. BTW $passplain is set in a preceding 
section of the script, could I just set that to ""?

# Now add our new user with home directory '$homebase$loginname' comment 
'real name,,,poponly' to group '$group' with shell '$ushell' to expire on 
'dec 30 this year' and get ouput if exists to flag file
         `groupadd $Group>/dev/null 2>&1>/dev/null`
         `useradd -m -d "$homebase$loginname" -c "$name,,,$comment" -g 
"$Group" -s "$ushell" -k "/etc/skeleton" -e "$acct_expire" -p $passwd -O 
UID_MIN=$uid_min -O UID_MAX=$uid_max -O GID_MIN=$gid_min -O 
GID_MAX=$gid_max $loginname >./user.exists 2>&1`
         err=`cat ./user.exists`         # See if we have a dupe
     fi
     passwd=$passplain
     do_output   #### Jump to file and screen output
     if [ ${#err} -eq 0  ] ; then
         return 1
     else
         return 0

     fi
}




Simon Bryan
____________________________________
IT Manager
OLMC Parramatta
http://www.olmc.nsw.edu.au
____________________________________


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to