Ok here is the state of play.
I found that in /lib and /usr/lib there was a libreadline soft link for 
4.1.1 pointing back to libreadline.so.3, so I trashed them!
Got rid of the samba rpm, downloaded the latest version from samba.org as a 
tarball. Have unpacked and installed that without error.
Changed the entries in inetd.conf to reflect the new locations of smbd and 
nmbd:

netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd
netbios-ns dgram udp wait root /usr/local/samba/bin/nmbd nmbd

when I tried to start nmbd and then smbd with the -D option I was getting 
the following in the messages.log

Jan 29 14:43:11 gatekeeper inetd[351]: /usr/local/samba/bin/nmbd: exit 
status 0x1
Jan 29 14:43:12 gatekeeper last message repeated 38 times
Jan 29 14:43:12 gatekeeper inetd[351]: netbios-ns/udp server failing 
(looping), service terminated

however the two services now seem to be running (and I don't know what I 
did) and the samba server appears in the browse list in W2K in the correct 
domain, but I can't login! I have removed and replaced the server in the 
domain using Server Manager on the Domain PDC.

I normally use   domain name\username

Any clues appreciated


At 15:35 27/01/2001, James Peter Gregory wrote:
>On Sat, 27 Jan 2001, Simon Bryan wrote:
>
> > At 15:02 27/01/2001, you wrote:
> > >Hi Simon.
> > >
> > >It might be worth your while to find out exactly which of the
> > >aforementioned libraries samba is actually using. First of all run find to
> > >find all the copies of samba that you have on this system. Then on a
> > >couple of xterms run
> > Samba is not running at all, it is the rpm that is failing this 
> dependency.
> > If I install the rpm with nodeps it won't start for the same reason, it
> > needs libreadline.so.3
>
>ok. lose the rpm's. This might sound like some bias on my part, but
>seriously it's amazing the number of things I get working in my office by
>removing the rpm's and building from source.
>
> >
> >
> >
> > >watch stat libreadline*
> > >
> > >from where-ever the libraries are located. stat will tell you, amongst
> > >other things, when the last access time was. You can use this to determine
> > >which of your libraries to start playing with.
> > If an 'xterm' is one running X-Windows then I don't have any
>
>ok, but you have multiple consoles, right? and screen.
>
> >
> >
> >
> > >Also, I'd recommend you just trash the RPM copy and build it from source.
> > >And all the libraries you need from source. RPM is not a bad package
> > >manager, but it just can't offer the flexibility that actually building
> > >the program can. rpm -ev is the command you're after. All the samba source
> > >trees will by default install in /usr/local/..., so a new build of samba
> > >will over-write a previous one. Also, I'm not quite sure what you're
> > >trying to achieve here, but you might be better off to tell samba to use
> > >pam and have pam point to some other database like nis or ldap
> >
> > I have installed from the tarball, but can't work out what the command is
> > to start it. The other times I have installed from the RPM file it has
> > included a start/stop/restart script
>
>try /usr/local/samba/bin/smbd -D; /usr/local/samba/bin/nmbd -D
>
>It wouldn't be too hard to knock up a script for /etc/rc.d/smb. I think I
>wrote one not long ago.
>
>
> >
> >
> > >oh, and I assume you've put the path for libreadline into /etc/ld.so.conf
> > >and $LD_LIBRARY_PATH, have you? if it's not working, then probably a
> > >rebuild of it is what you need to do. Likewise, remove the rpm first and
> > >build it fresh. You'll probably need to specify --nodeps to make it do it
> > >(since you've removing a library which no doubt has otehr programs depend
> > >on it).
> >
> > libreadline.so.3 is in /lib    /usr/lib    and  /usr/local/lib  the first
> > two directories are listed in /etc/ld.so.conf. I have been installing
> > libreadline.so.3 from a tarball of  readline-2.2.1 from gnu.org, which
> > tells me it includes librreadline.so.3 (or was that info on rpmfind.net?).
> > I unpacked the tarball in /usr/local and ran the install from the 
> resulting
> > directory. Should that work?
>
>ummm.. It might. I'm really not a fan of having multiple copies of the
>same library. It tends to cause problems. Remove the rpm. Build it from
>source. If you /ever/ need libraries in multiple places, make sure that
>all the "copies" are symlinks to one physical copy. The copy of ldconfig I
>have at work will actually whinge at me if this is not the case.
>
>And just a note, which doesn't have a lot of technical merit but might
>help things. I always unpack source code to /usr/local/src. It means that
>I know where all my source code is and that if a program goes installing
>stuff in /usr/local then I can remove the source code safe in the
>knowledge that it won't have installed anything to the place I put my
>source code (eg apache will install to /usr/local/apache, which sounds
>like where you'd put your source code).
>
> >
> > I want samba to enable easy access from my windows boxes and to allow 
> Squid
> > to do smb_auth authorisation.
> >
> >
> > >HTH
> > >
> > >James.
> > >
> > >On Sat, 27 Jan 2001, Simon Bryan wrote:
> > >
> > > > OK. Wish I knew what was going on!
> > > > If I manually call libreadline.so.3 from any of it's three locations
> > > then I
> > > > get 'Segmentation Fault' which I assume is OK as I am not passing 
> anything
> > > > to it or doing anything with it, but at least it means the file is 
> 'alive'.
> > > > In the /usr/lib directory the file was actually a softlink to ver 
> 4.1 so I
> > > > have deleted that and copied one of the others into the directory 
> and done
> > > > ldconfig ad nauseam in all sorts of permuatations, except now 
> ldconfig -p
> > > > does NOT show libreadline.so.3 at all.
> > > > Is there a way to manually link in this one file?
> > > >
> > > > At 14:16 27/01/2001, Grahame Kelly wrote:
> > > > >On Sat, 27 Jan 2001, you wrote:
> > > > > > Yep and ldconfig -p shows linbreadline.so.3 ->
> > > /usr/lib/libreadline.so.3
> > > > > > it also shows libreadline.so.4.1 -> libreadline.so.4.1 could 
> there be a
> > > > > > conflict here?
> > > > > >
> > > > >
> > > > >Hi Simon.
> > > > >
> > > > >Their should be no conflict. Different library versions are able
> > > > >to coexist.
> > > > >
> > > > >G.
> > > >
> > > >
> > > >
> > > > Simon Bryan
> > > > ____________________________________
> > > > IT Manager
> > > > OLMC Parramatta
> > > > http://www.olmc.nsw.edu.au
> > > > ____________________________________
> > > >
> > > >
> > > >
> > > > --
> > > > SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> > > > More Info: http://slug.org.au/lists/listinfo/slug
> > > >
> > >
> > >--
> > >"I like cats too. Let's exchange recipes." - unknown.
> >
> >
> >
> > Simon Bryan
> > ____________________________________
> > IT Manager
> > OLMC Parramatta
> > http://www.olmc.nsw.edu.au
> > ____________________________________
> >
> >
>
>--
>"I like cats too. Let's exchange recipes." - unknown.



Simon Bryan
____________________________________
IT Manager
OLMC Parramatta
http://www.olmc.nsw.edu.au
____________________________________



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to