LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Adrian Butterworth <adrian@econ-outlook.com.au>
  To  : Richard Sharpe , linuxsa@linuxsa.org.au
  Date: Thu, 04 Mar 1999 19:04:57 +1030

Re: Windows Netscape & Samba

Hi Richard
re:
> Hmmm, every time a user logs on, or when they access a particular drive?
> 
> I didn't think there was anything that could be run when logon processing
> was happening, but you certainly can run preexec scripts for users when
> they access a particular drive, like say, netlogon.
> 
> Actually, I think all this can be done with roaming profiles as well.
> 


If you use a preexec statement in the [netlogon] section
it will execute at login time every time, because this share is
always accessed. 
It happens before the netlogon is offered (PREexec) so it can create the
login batch file that is about to be read via the netlogon share.
This is one of the things we generate on the fly from a template.

It also less conveniently fires a second time a bit latter in the
process so the script has to accomodate this.

Here is a snip from a real life smb.conf calling the script
I mentioned.

>  [netlogon]
>    root preexec = /root/scripts/smb pre %u %m %I
>    comment = Network Logon Service
>    path = /home/%u/.smb/netlogon/
>    guest ok = yes
>    writable = yes
>    share modes = no
>    write list = brian

When called with "pre" as the first param this script does all the
setup stuff I was mentioning. (It also does otherthings when
called with other params for example when people log out)

The sharing of the home directories if used is a nice point to do
general login & logout processing such as firewall adjustments
because the preexec & postexec are called only once each. Unfortunately
this is too late in the process to use to create the batch file. 

and yes we use all this stuff in conjunction with roving
profiles/desktops where the client machines are 95/98.

all in all pretty cool way to get linux into win/nt sites
and its rock solid.

Regards
Adrian

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page