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
What is your question. Preexec will do it, if they have popup messages enabled on their machines. Here are the values I trap when a user logs on. This is for a guest sign in with ftp. If you have logins, you should get the user name and his machine. Maybe that might be enuf to contact them. Joel client machine NetBios name = hammer7 (%m) Primary goup name of U = ftp (%G) IP address of client = 192.168.0.7 (%I) Netbios name of server = jhammer6 (%L) Internet DNS of client= hammer7.jhammer.org (%M) NIS home directory= jhammer6 (%N) Protocal level = NT1 (%R) Current time and date= 2002/07/21 09:55:16 (%T) Session user name (one the client wanted)= ftp (%U) Architecture of remote machine= Samba (%a) Process ID of current server= 21314 (%d) Internet DNS hostname of server= jhammer6 (%h) Path of services home directory from NIS= (%p) Samba version= 2.2.1a (%v) Home directory of user in u= /home/ftp (%H) Root directory of current service = / (%P) Name of current service = public (%S) Primary group name of u in share = ftp (%g) User name of current service = ftp (%u) On Thu, Jul 25, 2002 at 09:46:21AM -0500, Javid Abdul-AJAVID1 wrote:> 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
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
Apparently Analagous Threads
- can someone PLEASE tell me how to mount a share with all stuff world
- Removing ALL security from samba. :)
- encoding problem with samba 227 ad rh80
- 1 minute wait on a share / call_trans2qfsinfo takes 60 seconds
- Listing samba 2.2.8a (redhat 8) verables to a text file