Date: Wed, 24 Jan 2001 11:13:21 -0500 From: rmichalski@enwin.com To: Edwin Groothuis <mavetju@chello.nl> Subject: Re: Unable to root due to invalid shell Message-ID: <852569DE.00591D70.00@alcor.wuc.on.ca>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?852569DE.00591D70.00>