[Samba] Re: Samba - root preexec & login scripts

Walter Mautner rentuam_retlaw at hotmail.com
Thu Oct 31 22:40:01 GMT 2002


> From: mrambo at scnc.lsd.k12.mi.us

> John Benedetto wrote:
> >
> > --On Wednesday, October 30, 2002 8:46 PM +0100 Walter Mautner
> > <rentuam_retlaw at hotmail.com> wrote:
> >
> <snip>
> > >> [netlogon]
> > >>    comment = Network Logon Service
> > >>    path = /home/netlogon
> > >>    guest ok = yes
> > >>    read only = yes
> > >>    browseable = no
> > >>    printable = no
> > >>    write list = @adm
> > >>    share modes = no
> > >> #   root preexec = perl /home/netlogon/netlogon.pl %U
> > >>    preexec = echo \"%u connected to %S from %m (%I)\" >> /tmp/log
> > >>
> > > Probably it's too simple: you have to supply absolute
> paths to your
> > > commands :)
> > >
You didn't try out with absolute paths (/bin/echo ...) ... or at
least did the command execute before bailing you out?
> >
......
> I obviously can't see it but I was hoping someone else might
> see something wrong somewhere else in the smb.conf file -
> maybe the profiles set up or something(?).
>
You can try to add a "preexec close = no" statement also.
This will (or at least it _should_) make the success of your
domain logons independent of the errorlevel returned by the
preexec command.
I am using preexec statements in my smb.conf at workplace,
but I placed them into the section of common shares.




More information about the samba mailing list