Date: Sat, 20 Jan 2001 09:15:56 -0600 (CST) From: Mike Meyer <mwm@mired.org> To: Bill Moran <wmoran@mail.iowna.com> Cc: questions@FreeBSD.ORG Subject: Re: Request For Help Message-ID: <14953.43948.9057.308898@guru.mired.org> In-Reply-To: <3A6937B9.7603AE12@mail.iowna.com> References: <14953.13318.498222.83644@guru.mired.org> <3A6937B9.7603AE12@mail.iowna.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Moran <wmoran@mail.iowna.com> types:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Mike Meyer wrote:
>
> > 3) The passwd command is on /usr, which may not be mounted.
>
> I've been thinking about this ... why isn't passwd or pw in /sbin or
> /bin??
Because / is generally reserved for things needed to boot, and things
needed to repair systems that can't boot past that point.
> The scenerio becomes even more of a pain if there are vinum volumes,
> (/usr for example) since vinum doesn't start in single user mode. so you
> can't just "mount" /usr.
*Nothing* starts in single user mode. That doesn't mean it can't be
started by hand after you have things up to single user mode. In other
words, you have to do "/sbin/vinum start" before doing "mount
/usr". That's not nearly as painful as mounting an nfs partition.
> I'm considering copying passwd to /bin on any systems I have that have
> vinum /usr drives. Can anyone see potential problems with this?
I think the shared libraries it uses from /usr would be a problem:
su-2.04# ldd /usr/bin/passwd
/usr/bin/passwd:
libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x2806a000)
librpcsvc.so.2 => /usr/lib/librpcsvc.so.2 (0x28081000)
libutil.so.3 => /usr/lib/libutil.so.3 (0x28089000)
libc.so.5 => /usr/lib/libc.so.5 (0x28092000)
You need to build a statically linked version and install it in
/bin. Then worry about possibly running out of space on / (not really
very likely), and finally make sure that you update it when you update
the world.
<mike
--
Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
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?14953.43948.9057.308898>
