[Samba] need help with preexec

Thierry ITTY
2002-07-25T23:48:33Z

from "man smb.conf"

preexec (S)

       This  option specifies a command to be run whenever the service is
connected to. It takes the usual sub?
       stitutions.

       An interesting example is to send the users a welcome message every
time they log in. Maybe a message of
       the day? Here is an example:

            preexec = csh -c ?echo \"Welcome to %S!\" |
/usr/local/samba/bin/smbclient -M %m -I %I? &

       Of course, this could get annoying after a while :-)

       See also preexec close and postexec.

       Default:      none (no command executed)

       Example:
               preexec = echo \"%u connected to %S from %m (%I)\"
>> /tmp/log


you're served :-)




A 09:46 25/07/02 -0500, vous avez ?crit :
>Hi all
>
>I wanted to send a message to users when they are mapping, to migrate to
>different samba server
>
>I am assuming preexec will do this, users are w2k clients,
>i would like w2k clients to get a message, like a popup windows box with
>message once they map to thier unix home directory
>
>how would i do that, does preexec will help me here
>
>thanks
>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions:  http://lists.samba.org/mailman/listinfo/samba
>
>
			- * - * - * - * - * - * -
Bien s?r que je suis perfectionniste !
Mais ne pourrais-je pas l'?tre mieux ?
	Thierry ITTY
eMail : Thierry.Itty@Besancon.org		FRANCE