[Samba] Install to alternate location
John H Terpstra
jht at samba.org
Fri Oct 25 05:26:48 GMT 2002
On Thu, 24 Oct 2002, Jay Ts wrote:
> Jennifer Crusade wrote:
> >
> > I am trying to download and install samba with winbind but I can not make it
> > go to a different location, I do not want it to go to /usr/local/samba
> > because when I do then the system does not use the new version. I have
> > tried to link the new version with the old but I could not get that to work
> > either.
> >
> > If someone can assist me in making an install go to an alternate location as
> > well as how to make the system use the new install from an alternate
> > location. I would like to know how to do both.
>
> I suggest you let the installation go to /usr/local/samba. You will
> need to take a look at your startup scripts. Since you didn't say
> what version of Unix you're running there, I'll go ahead and assume
> it's the same as I'm using. (That's what you get for not providing
> detailed information. ;-) On Red Hat Linux, the script to
> start Samba is /etc/init.d/smb. You can change it to run the daemons
> from /usr/local/samba/bin rather than /usr/sbin.
>
> I'm not sure, but I think that will do it.
On the other hand, if you are running Red Hat Linux, then why not build
the RPMS you need from the samba source, and update/install them to keep
your system intact.
To build the Red Hat RPMS, from the samba-2.2.6.tar.gz file:
1. tar xzvf samba-2.2.6.tar.gz
2. cd samba-2.2.6/packaging/RedHat
3. sh makerpms.sh
4. cd /usr/src/redhat/RPMS/i386
5. rpm -Fvh samba-2.2.6-1.i386.rpm
If there are any problems with reported conflicts you should run:
rpm -qa | grep samba
then for each file, assuming you get:
samba-doc-2.2....
samba-client-2.2....
samba-server-2.2....
rpm -e samba-doc samba-client samba-server ...
Now install the package you built:
rpm -ivh samba-2.2.6-1.i386.rpm
Then again, if you are not running and RPM based Linux system, this advice
is useless to you.
Cheers,
John T.
>
> BTW, if you are having that much trouble getting the daemons to run
> from another installation directory, I wonder if you really want to
> try installing/configuring winbind! It's not nearly as simple.
>
> Jay Ts
>
--
John H Terpstra
Email: jht at samba.org
More information about the samba
mailing list