Hallo, Marcus, Du (lists) meintest am 02.04.07:
>>> http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/Advanced >>> NetworkManagement.html#id386516 > my script: > preexec script = /path/PermitSingleLogon.sh '%U' > preexec close = Yes > ---------- > #!/bin/bash > RESULT=$(smbstatus -d0 -b -u $1 2> /dev/null | grep $1) > if [ "X${RESULT}" == X ]; then > exit 0 > else > exit 1 > fi > ---------- Try ... | grep -c $1) and then test "$RESULT" -le 1 || exit 1 exit 0 Then "prexec close = yes" blocks the second (and all further) login. Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba