From owner-freebsd-newbies Sun Sep 19 22:44:31 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from uvaix7e1.comp.UVic.CA (uvaix7e1.comp.UVic.CA [142.104.5.107]) by hub.freebsd.org (Postfix) with ESMTP id BAC14150D6 for ; Sun, 19 Sep 1999 22:44:27 -0700 (PDT) (envelope-from veenoghu@uvic.ca) Received: from chair (chair.alma.UVic.CA [142.104.140.40]) by uvaix7e1.comp.UVic.CA (8.9.3/8.9.3) with SMTP id WAA172270 for ; Sun, 19 Sep 1999 22:44:26 -0700 Reply-To: From: "Morgan Stewart" To: Subject: Locking myself out of Root @ Wheel Date: Sun, 19 Sep 1999 22:39:30 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E0_01BF02EF.D6136DA0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_00E0_01BF02EF.D6136DA0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Ok... I seem to have royally mucked up. I have locked myself out of the root user account. I'm not exactly sure what I have done wrong, but here's what I did. Using a basic search & replace function on the master.passwd file I renamed the shell in use by root (and nearly all other users), from /bin/sh to /bin/csh The user I added immediately after making this change still works, all of the other users don't. I rebooted shortly thereafter and then tried to log back in. When doing this I'm greeted with the following error right as the shell should start: : No such file or directory The server is still operational and working just fine without me. But, I will eventually need to have access to it again. Please help!!! I need a suggestion for how I override either the default shell or otherwise gain access to the file system in order to restore the backed up master.passwd file. Any takers??? Please??? Cheers, Morgan Stewart -------------------------------------------------------------------------------- Chairperson of the UVic Students' Society Local 44 of the Canadian Federation of Students (250) 721-8370 Work & Fax (250) 472-4379 JOIN The campaign for higher education... www.cfs.bc.ca ------=_NextPart_000_00E0_01BF02EF.D6136DA0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Ok...
 
I = seem to have=20 royally mucked up.
 
I = have locked=20 myself out of the root user account.
 
I'm = not exactly=20 sure what I have done wrong, but here's what I did.
 
Using = a basic=20 search & replace function on the master.passwd file I renamed the = shell in=20 use by root (and nearly all other users), from /bin/sh to=20 /bin/csh
 
The = user I added=20 immediately after making this change still works, all of the other users = don't.
 
I = rebooted=20 shortly thereafter and then tried to log back in.  =
 
When = doing this=20 I'm greeted with the following error right as the shell should=20 start:
 
: No = such file or=20 directory
 
The = server is=20 still operational and working just fine without me.  But, I will = eventually=20 need to have access to it again.
 
Please=20 help!!!
 
I = need a=20 suggestion for how I override either the default shell or otherwise gain = access=20 to the file system in order to restore the backed up master.passwd=20 file.
 
Any = takers???=20 Please???
 

Cheers,

Morgan = Stewart


Chairperson of the UVic = Students'=20 Society Local 44 of the Canadian = Federation of Students

(250)=20 721-8370 Work & Fax (250) 472-4379

 
<= /TBODY>

JOIN

The=20 campaign for higher education...
www.cfs.bc.ca

 

 
------=_NextPart_000_00E0_01BF02EF.D6136DA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message