Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2008 15:44:02 -0500
From:      Shelby Cain <scain@exgenesis.com>
To:        Roland Smith <rsmith@xs4all.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Invoking ldconfig without arguments wipes all hints and makes me very sad
Message-ID:  <1207860242.11735.64.camel@localhost>
In-Reply-To: <20080410201439.GA45576@slackbox.xs4all.nl>
References:  <1207855812.11735.39.camel@localhost> <20080410201439.GA45576@slackbox.xs4all.nl>

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

--=-LeWIJUC9KWkQ3pJryPjn
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


On Thu, 2008-04-10 at 22:14 +0200, Roland Smith wrote:
>=20
> It is unwise to use a port as a root shell. What if /usr or /usr/local is=
 on a
> separate partition which isn't mounted in single user mode?
>=20

This is just a toy system I set up to learn about FreeBSD and zfs so I
didn't bother using multiple partitions.  Regardless, it wouldn't matter
at this point as root logins via ssh are disabled so there is still no
effective way I'm aware of the access the system remotely since I can't
log in as myself first to su/sudo.

> Do you know that there are a lot of statically linked binaries available
> in /rescue just for this eventuality? And that there are two shells
> amongst them; (t)csh and sh?
> =20

I was unaware of /rescue.  Thanks for pointing this out.

> Can you specify what exactly you mean?
> Calling ldconfig without arguments doesn't do anything to the hints
> file:
>=20
> So there was no change to the file.
>=20

Sorry, you are of course correct.  Experimenting with a vm, it turns out
that I had mistakenly executed ldconfig <path> without -m followed by
ldconfig -v instead of ldconfig -vr.

> Did you perchance delete the hints file, or unmounted the filesystem
> where /var is located?

Nope, I was attempting to inspect the current configuration and I just
screwed up.

Regards,

Shelby Cain

--=-LeWIJUC9KWkQ3pJryPjn
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBH/nwSFioAnfS4MHQRAo4pAJ9y0fXdZOlLrxmG10hjj58eZHsq2gCfb0Sm
5c6EkdsEVuvomjzfCdOCNkE=
=6s41
-----END PGP SIGNATURE-----

--=-LeWIJUC9KWkQ3pJryPjn--




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