Is there a way to run a script on my samba PDC machine when a user logs in and logs out? Thanks in advance. -- Air conditioners and Computers are the same - they both crash when you open Windows.
I have samba setup as PDC with win 2003 AD so what i did is i setup login/logout scripts using "group policy" On 1/23/07, Mauricio Szabo <mauricio.szabo@ufabc.edu.br> wrote:> > Is there a way to run a script on my samba PDC machine when a user logs in > and logs out? > > Thanks in advance. > > -- > Air conditioners and Computers are the same - they both crash when you > open > Windows. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >-- "Unless you try to do something beyond what you have already mastered, you will never grow." Ronald E. Osborn
Mauricio, If you are just using a samba server as the PDC with no MS Windows domain controller then yes you can have login scripts. You can also use group membership comparisons within the login script using a windows tool called ifmember.exe. Both the vbs/bat files and ifmember.exe go /etc/netlogon. To do the group comparison you have do a net groupmap command to map the unix group with an nt group. I have done this on a Mac Tiger and Panther server. If you want more info mail me directly. I am going on holiday tomorrow so I may not get back straight away. Regards Paul> -----Original Message----- > From: Mauricio Szabo [mailto:mauricio.szabo@ufabc.edu.br] > Sent: Tuesday 23 January 2007 12:43 > To: samba@lists.samba.org > Subject: [Samba] Login and logout scripts > > Is there a way to run a script on my samba PDC machine when a > user logs in and logs out? > > Thanks in advance. > > -- > Air conditioners and Computers are the same - they both crash > when you open Windows. > >
Maybe use preexec? It's a share thing, but you should be able to script something . . . Maur?cio Szabo wrote:> But what I want to do is a login / logout script that runs *on the > samba server*, so when a user logs in, I could make a backup of his > "home share" before he logs... > > On 1/24/07, *Toby Bluhm* <tkbsmb@midwestinstruments.com > <mailto:tkbsmb@midwestinstruments.com>> wrote: > > Charles Marcus wrote: > >> If you are just using a samba server as the PDC with no MS Windows > >> domain controller then yes you can have login scripts. > >> > >> You can also use group membership comparisons within the login > script > >> using a windows tool called ifmember.exe. Both the vbs/bat > files and > >> ifmember.exe go /etc/netlogon. > > > > Correction: it is ISMEMBER.EXE, not ifmember.exe. > > > > ismember.exe & osver.exe are third party tools. ifmember.exe is > part of > MS Resource Kit. >-- -Toby