mijto, imi dau singur raspunsul.
Se pare ca asta merge:
root preexec close = yes
root preexec = /root/sambascript %u %m
scriptul:
x=`pinky | grep $1`
y=`pinky | grep $1 | grep -w $2`
if [ "$x" != "" ]; then
if [ "$y" = "" ]; then
echo "$1 tried to log in twice at `date`" >>
/var/log/samba/duallog.log
echo "User deja logat"
exit 1
fi
else
exit 0
fi
---
Detalii despre listele noastre de mail: http://www.lug.ro/
