Date: Wed, 24 Jan 2001 18:51:05 +0200 From: Vasile Vladescu <vsile@webinfo.ro> To: rmichalski@enwin.com Cc: freebsd-questions@freebsd.org Subject: Re: Unable to root due to invalid shell Message-ID: <00037ba0b36f3c3d_mailit@ns.webinfo.ro> References: <852569DE.00591D70.00@alcor.wuc.on.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mavetju@chello.nl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00037ba0b36f3c3d_mailit>