You are on page 1of 1

mkuser -R LDAP id=$UID pgrp=eoc_adm groups=eoc_adm home=/home/$USER shell=/usr/b

in/ksh gecos=$USER login=true su=true rlogin=true daemon=true admin=false sugrou


ps=ALL tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 registry=
LDAP SYSTEM=LDAP loginretries=5 pwdwarntime=5 account_locked=false minage=0 maxa
ge=52 maxexpired=-1 minalpha=1 minother=1 mindiff=0 maxrepeats=8 minlen=8 histex
pire=0 histsize=4 dictionlist=/usr/share/dict/words fsize=2097151 cpu=-1 data=26
2144 stack=65536 core=2097151 rss=65536 nofiles=2000 $USER
USER=`echo "$i\c" | awk '{print $1}' `
USER=$i
UID=`cat orauser | grep $USER | awk '{print $2}'`
grop=`cat orauser | grep $USER | awk '{print $3}'`
HOME=`cat orauser | grep $USER | awk '{print $5}'`
GECOS=`echo $HOME | awk -F"/" '{print $3}'`
echo "The user will be made with following credentials $USER $UID $grop $HOME $G
ECOS"
mkuser -R LDAP id=$UID pgrp=$grop groups=$grop home=$HOME shell=/usr/bin/ksh gec
os="$GECOS SAP Account" login=true su=true rlogin=true daemon=true admin=false s
ugroups=ALL tpath=nosak ttys=ALL expires=0 auth1=SYSTEM auth2=NONE umask=22 regi
stry=LDAP SYSTEM=LDAP loginretries=5 pwdwarntime=5 account_locked=false minage=0
maxage=52 maxexpired=-1 minalpha=1 minother=1 mindiff=0 maxrepeats=8 minlen=8 h
istexpire=0 histsize=4 dictionlist=/usr/share/dict/words fsize=2097151 cpu=-1 da
ta=262144 stack=65536 core=2097151 rss=65536 nofiles=2000 $USER

rmuser -p $USER

You might also like