[Samba] - root preexec & login scripts
Mike Rambo
mrambo at lsd.k12.mi.us
Fri Nov 1 13:17:01 GMT 2002
Walter Mautner wrote:
>
> > 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 just tried it with /bin/echo - no difference and until this morning no
sign it ever tried to run. I tried it 8 or 9 times this morning and
finally, for the first time, received exactly one log message that looks
related to the problem.
[2002/11/01 07:59:02, 3] smbd/sec_ctx.c:set_sec_ctx(313)
setting sec ctx (500, 500) - sec_ctx_stack_ndx = 0
[2002/11/01 07:59:02, 3] smbd/sec_ctx.c:set_sec_ctx(319)
2 user groups:
500 700
[2002/11/01 07:59:02, 5] smbd/uid.c:change_to_user(201)
change_to_user uid=(0,500) gid=(0,500)
[2002/11/01 07:59:02, 1] smbd/service.c:make_connection(592)
preexec gave 2 - failing connection <<<<<
[2002/11/01 07:59:02, 3] smbd/connection.c:yield_connection(48)
Yielding connection to netlogon
[2002/11/01 07:59:02, 3] smbd/error.c:error_packet(91)
error string = No such file or directory <<<<<
[2002/11/01 07:59:02, 3] smbd/error.c:error_packet(121)
error packet at smbd/reply.c(167) cmd=117 (SMBtconX) eclass=2 ecode=65
[2002/11/01 07:59:02, 5] lib/util.c:show_msg(268)
size=35
smb_com=0x75
smb_rcls=2
smb_reh=0
smb_err=65
smb_flg=128
smb_flg2=1
> > >
> ......
> > 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.
Well preexec close = no is the default according to the smb.conf man
page, but regardless, I tried it with that statement explicitly set to
both yes and no. 'no' results in the no domain server available error
that I've had all along. 'yes' results in an 'invalid (or maybe it was
unexpected - can't remember) network response' error. In both cases the
box will not log into the domain.
BTW, I appeciate everyones efforts to help me in this... Any other
ideas?
--
Mike Rambo
mrambo at lsd.k12.mi.us
More information about the samba
mailing list