cat /etc/passwd |
while
read vaccount pw vuid gid bem home shell
do
if test $name$ = $vaccount
then echo "Konto ist schon vorhanden!";exit
fi
done
++ test 1700 = 1700
++ echo 'UID ist schon vorhanden!'
UID ist schon vorhanden!
++ exit
...und dann macht er weiter
useradd -c Computerkonto -d /dev/null -g 100 -s /bin/false -u $uid $name$
++ useradd -c Computerkonto -d /dev/null -g 100 -s /bin/false -u 1700 'test1700$'
useradd: user test1700$ exists
smbpasswd -a -m $name
++ smbpasswd -a -m test1700
.....
wie muss ich exit dann einbauen???
gruss
jorge
|