Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 22:39:30 -0700
From:      "Morgan Stewart" <veenoghu@uvic.ca>
To:        <freebsd-newbies@freebsd.org>
Subject:   Locking myself out of Root @ Wheel
Message-ID:  <NDBBILDCDHKKMPLMPMKBKEFLEBAA.veenoghu@uvic.ca>

next in thread | raw e-mail | index | archive | help
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999>Ok...</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>I =
seem to have=20
royally mucked up.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>I =
have locked=20
myself out of the root user account.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>I'm =
not exactly=20
sure what I have done wrong, but here's what I did.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>Using =
a basic=20
search &amp; 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</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>The =
user I added=20
immediately after making this change still works, all of the other users =

don't.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>I =
rebooted=20
shortly thereafter and then tried to log back in.&nbsp; =
</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>When =
doing this=20
I'm greeted with the following error right as the shell should=20
start:</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>: No =
such file or=20
directory</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>The =
server is=20
still operational and working just fine without me.&nbsp; But, I will =
eventually=20
need to have access to it again.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN =
class=3D040043105-20091999>Please=20
help!!!</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>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.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN class=3D040043105-20091999>Any =
takers???=20
Please???</SPAN></FONT></DIV>
<DIV><FONT face=3D"Love LetterTW"><SPAN=20
class=3D040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>
<P></FONT><FONT face=3D"Love LetterTW">Cheers,</FONT><FONT size=3D2></P>
<P></FONT><A href=3D"mailto:veenoghu@uvic.ca"=20
style=3D"BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)"><FONT=20
color=3D#400040 face=3D"Lucida Handwriting" size=3D5>Morgan =
Stewart</FONT></A><FONT=20
size=3D2></P><FONT size=3D2><FONT face=3D"Love LetterTW">
<HR>
</FONT>
<DD>
<P align=3Dcenter></FONT></FONT><FONT face=3D"Love LetterTW"><FONT =
color=3D#400040=20
size=3D4><A href=3D"mailto:chair@uvss.uvic.ca">Chairperson</A> of the <A =

href=3D"http://www.uvss.uvic.ca/"=20
style=3D"BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)">UVic =
Students'=20
Society</A> Local 44 of the <A href=3D"http://www.cfs-fcee.ca/"=20
style=3D"BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)">Canadian =

Federation of Students</A></FONT><FONT size=3D3></FONT></P>
<P align=3Dcenter></FONT><FONT color=3D#400040 face=3D"Love LetterTW" =
size=3D4>(250)=20
721-8370 Work &amp; Fax (250) 472-4379</FONT><FONT size=3D2></P></FONT>
<DIV align=3Dcenter>
<CENTER></DIV>
<DT><FONT face=3D"Love LetterTW">&nbsp; </FONT></CENTER></DT></DIV>
<DIV align=3Dcenter>
<CENTER>
<TABLE bgColor=3D#0000ff border=3D0 cellPadding=3D2 cellSpacing=3D10 =
width=3D"69%">
  <TBODY>
  <TR>
    <TD width=3D"15%">
      <P align=3Dcenter><FONT=20
      face=3D"Franklin Gothic Heavy"><BIG><BIG><BIG><BIG><BIG><A=20
      href=3D"http://www.cfs.bc.ca/" style=3D"COLOR: rgb(255,255,0)" =
color=3D"#400040"=20
      vlink=3D"#400040"=20
      =
link=3D"400040">JOIN</A></BIG></BIG></BIG></BIG></BIG></FONT></P></TD>
    <TD width=3D"85%">
      <P align=3Dleft><FONT color=3D#ffff00><FONT face=3D"Love =
LetterTW"><BIG>The=20
      campaign for higher education</BIG>...<BR><A =
href=3D"http://www.cfs.bc.ca/"=20
      style=3D"COLOR: =
rgb(255,255,0)"><BIG>www.cfs.bc.ca</BIG></A></FONT></FONT></P></TD></TR><=
/TBODY></TABLE></CENTER></DIV>
<DIV></DIV>
<P>&nbsp;</P>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00E0_01BF02EF.D6136DA0--



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBILDCDHKKMPLMPMKBKEFLEBAA.veenoghu>