From owner-freebsd-questions Sat Jan 20 7:16:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id D680E37B404 for ; Sat, 20 Jan 2001 07:15:56 -0800 (PST) Received: (qmail 91673 invoked by uid 100); 20 Jan 2001 15:15:56 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14953.43948.9057.308898@guru.mired.org> Date: Sat, 20 Jan 2001 09:15:56 -0600 (CST) To: Bill Moran Cc: questions@FreeBSD.ORG Subject: Re: Request For Help In-Reply-To: <3A6937B9.7603AE12@mail.iowna.com> References: <14953.13318.498222.83644@guru.mired.org> <3A6937B9.7603AE12@mail.iowna.com> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bill Moran 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. 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