Date: Sat, 28 Sep 2002 11:50:19 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Christopher Farley <chris@northernbrewer.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help! Broken libc! Message-ID: <20020928105019.GE24417@happy-idiot-talk.infracaninophi> In-Reply-To: <20020928072600.GA321@northernbrewer.com> References: <20020928072600.GA321@northernbrewer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 28, 2002 at 02:26:04AM -0500, Christopher Farley wrote: > The libc.so.4 hash is different, so I suspect it may be the source of my > problem. It also appears that replacing this file is somewhat > non-trivial. When I attempt to remove the file, I get an "Operation > not permitted," probably because it's linked to a ton of running > programs. > > Is there even a way to replace this file? Copy the good version of the libc.so.4 file onto your broken machine using a different filename: scp goodmachine:/usr/lib/libc.so.4 /usr/lib/libc.so.4.good Shut your machine down, and then boot up to single user mode, and move the bad file out of the way and the good file into place. This file is marked immutable using chflags(1) so depending on what security level you run at, you may need to be in single user to do anything. It's a good idea to go to single user whenever when you're fiddling with something so vital to the system: shutdown -r now [...] cd /usr/lib chflags -0 libc.so.4 mv libc.so.4 libc.so.4.bad mv libc.so.4.good libc.so.4 chmod 444 libc.so.4 chown root:wheel libc.so.4 chflags schg libc.so.4 and then immediately reboot. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK 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?20020928105019.GE24417>