Re: Rebuilding OpenSSH on RedHat 7.3
From: Grant (gpg86_at_hotmail.com)
Date: 03/19/04
- Next message: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Previous message: Darren Tucker: "Re: banner cut off despite applying patch"
- In reply to: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Next in thread: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Reply: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 18 Mar 2004 17:45:19 -0800
I compiled using a prefix of /usr instead of /usr/local, but that didn't
seem to put the daemon in /usr/sbin where the default location is for RH
7.3. Pretty sure I blew away the keys (the init script looks like it
rebuilds them if they are missing). sshd and ssh return a proper version and
the init script points at the correct sshd. As far as ssh_config its still
in /etc/ssh/ and there isn't one in plain old /etc. I can't remember if I
did something to explicitly get it there or if it was in fact a default from
the tarball.
Anyhow, everything seems to be working fine :) Its possible some of the
other binaries (like sftp?) are not in the right place because sshd that got
built was actually in /usr/local/sbin even with my change of the default
prefix. If that is the case I'm still ok All we use OpenSSH for is the
client and the daemon for remote logins.
Man, I really wish the linux distro folks would put stuff where the people
who write the software (tarballs default config scripts) put it. I mean I
understand the difference between /usr/bin and /usr/local/bin and possibly
why most tarballs default to /usr/local as a prefix but man, what a mess
that can lead to.
thanks guys
G
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote in message
news:vfKdnd01n_vaXMzdRVn-iQ@comcast.com...
>
> "Darren Tucker" <dtucker@dodgy.net.au> wrote in message
> news:c2r5aq$h9q$1@gate.dodgy.net.au...
> > In article <c2r41m$phb$1@news2.symantec.com>, Grant <gpg86@hotmail.com>
> wrote:
> > >I've fixed it :) Apparently the "make install" target doesn't replace
> sshd
> > >with the newly built binary. Manually replacing it did the trick :)
> >
> > It does, but by default OpenSSH puts its binaries in
/usr/local/{bin,sbin}
> > and most vendors (including Redhat) put their binaries in
/usr/(bin,sbin}.
>
> Uh-oh. If he compiled for --prefix=/usr/local (the default) and did a
"make
> install" and installed one binary in /usr/sbin/sshd (where RedHat puts
the
> binaries), he can wind up with a world of hurt later as the SSH binaries
(in
> /usr/bin, etc.) wind up confusing things with the binaries in
> /usr/local/bin, depending on how his PATH is set.
>
> Grant? If you've got to update an RPM installed package, please actually
> update the SRPM and build from that. It's not that hard to do, and it does
a
> bunch of things like flushing away your old binaries and documentation and
> replacing them with the new stuff that you'll find useful down the road.
> Also, the default location of your sshd_config files and private keys is
> different under RedHat (in /etc/ssh/sshd_config) than it is under the
> default OpenSSH installation. (/etc/sshd_config, I think?) So you may wind
> up with some real configuration surprises if you're not careful. And the
> "make install" in the tarbal doesn't set up init scripts for you, or know
> enough to restart the daemon with the new sshd binary.
>
>
- Next message: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Previous message: Darren Tucker: "Re: banner cut off despite applying patch"
- In reply to: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Next in thread: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Reply: Nico Kadel-Garcia: "Re: Rebuilding OpenSSH on RedHat 7.3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|