Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 16:07:03 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Jeff Shevlen <jeff@passedpawn.com>
Cc:        Kris Kennaway <kris@obsecurity.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: OpenSSH upgrade
Message-ID:  <20020123160703.B42473@xor.obsecurity.org>
In-Reply-To: <20020123163428.A1520-100000@williamt>; from jeff@passedpawn.com on Wed, Jan 23, 2002 at 04:38:13PM -0500
References:  <20020123163428.A1520-100000@williamt>

next in thread | previous in thread | raw e-mail | index | archive | help

--0ntfKIWw70PvrIHh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 23, 2002 at 04:38:13PM -0500, Jeff Shevlen wrote:
>=20
> Thanks!
>=20
> I took the low road and made the changes to rc.conf, rebooted, and now
> everythings come up current.  I see the problem was that sshd was compiled
> (or something) in with the kernal...

No, not the kernel -- it's a userland binary which is compiled in
FreeBSD by 'make world' which rebuilds everything which comes bundled
as part of the "base operating system" (all of the standard binaries,
libraries etc in /bin, /sbin/ /usr/lib, etc, but not any third party
software like ports which you install yourself)

By default FreeBSD will start the version of sshd which comes
standard, which lives in /usr/sbin/sshd.  If you want to replace it
with another version which lives in another directory, you have to
tell FreeBSD where to find it (this goes in /etc/rc.conf).

> Also, maybe you can answer some of my newbie questions in regards to your
> response:
> (1) when you say "system files", are these files complied with the kernal?
> or are they kernal modules? or are they something else? I haven't really
> wrapped my head around this.

No, I mean the files in /sbin, /usr/sbin, /usr/lib /bin, etc.  What
are usually called "userland" applications.

> (2) you mention that I could remove the sshd files manually, but would it
> then be possible to re-integrate the latest version of OpenSSH as
> system files again (effectively replacing the old files in /etc/sbin?)

By system files I just mean "files which come standard with FreeBSD".
There's nothing magical about them, and they're application binaries
just like the ones which get installed by ports.  The only difference
is the directory they live in; ports are installed into a separate
directory hierarchy (/usr/local) to keep everything nice and clean and
separate.

> (3) the changes I've made do not affect the ssh client.  When I type # ssh
> -V ... I still get the old version.  Where is ssh initialized?  How do I
> upgrade the client too?

Like I said, set your PATH so that your shell looks in /usr/local/bin
first for the ssh binary you installed from the port, instead of
/usr/bin.

Kris

--0ntfKIWw70PvrIHh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8T1AnWry0BWjoQKURAsgjAJ9WBjlkMAtQ68ojP7GdpmzeAr6QlACfa5Qp
h+Y8Lr73RXdFzZb8657UucI=
=CkNI
-----END PGP SIGNATURE-----

--0ntfKIWw70PvrIHh--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123160703.B42473>