Hallo, Marcus,

Du meintest am 03.04.07 zum Thema Re: [Samba] deny second or multiple logins:

> RESULT=$(smbstatus -d0 -b -u $1 2> /dev/null | grep $1 | awk '{print
> $5}' | uniq | wc -l)

> test "$RESULT" -eq 1 || exit 1
> -------

That's no good idea.
Try

        test "$RESULT" -eq 0

Then the return level is 0 (= ok) for 0 , and it's 1 (not ok) for 1 or  
higher.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to