From owner-freebsd-questions Wed Jan 24 8:51:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns.webinfo.ro (unknown [193.230.178.34]) by hub.freebsd.org (Postfix) with SMTP id BE9F437B699 for ; Wed, 24 Jan 2001 08:51:35 -0800 (PST) Received: from GDV4.webinfo.ro (unverified [193.230.178.51]) by ns.webinfo.ro (EMWAC SMTPRS 0.83) with SMTP id ; Wed, 24 Jan 2001 18:44:00 +0200 Subject: Re: Unable to root due to invalid shell From: Vasile Vladescu Message-ID: <00037ba0b36f3c3d_mailit@ns.webinfo.ro> References: <852569DE.00591D70.00@alcor.wuc.on.ca> Date: Wed, 24 Jan 2001 18:51:05 +0200 X-Mailer: BeatWare Mail-It 3.0 X-BeOS-Platform: Intel or clone To: rmichalski@enwin.com Cc: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Antirelay: Good relay from local net1 193.230.178.32/27 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Usually in single mode the file system is first mounted in read-only mode. You must mount again with command "mount /" in order to mount the root file system amd whatever other file system you have with "mount /usr" where "usr" is whatever you want. Luck, Vasile >Thanks for answering so quickly. I tried what you said and the file system >is being mounted, but when I try to use ed to edit the /etc/passwd file I >get a 'read-only file system' error for '/tmp/ed.a989d' <-- something >similar to that. It looks like its just trying to create a temporary file >but it's not allowed to. I can't use vi, it says it can't find it. Have >you run into something like this before? >Edwin Groothuis on 01/24/2001 10:57:45 AM >To: Remi Michalski/cert >cc: freebsd-questions@freebsd.org >Subject: Re: Unable to root due to invalid shell >On Wed, Jan 24, 2001 at 10:49:38AM -0500, rmichalski@enwin.com wrote: >> I can't login as root due to an invalid shell setting in the user >database. >> The shell selected is kcsh which does not exist in my bin directory. >> Because of this I cannot login as root. Any attempt to copy or rename >csh >> to kcsh fails because I do not have permission. Any help would be >> appreciated. >Boot in single-usermode (at the ten seconds delay during startup), >then you can edit the file /etc/passwd. Maybe you need to mount >the filesystems manually, maybe you need to use ed instead of vi. >I always found it an interesting experience when I had to fix my >system :-) >Edwin, been there, done that, got the tshirt >-- >Edwin Groothuis | Interested in MUDs? Visit Fatal Dimensions: >mavetju@chello.nl | http://fataldimensions.nl.eu.org/ >------------------+ telnet://fataldimensions.nl.eu.org:4000 >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message