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

[-- Attachment #1 --]
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






[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999>Ok...</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>I seem to have 
royally mucked up.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>I have locked 
myself out of the root user account.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>I'm not exactly 
sure what I have done wrong, but here's what I did.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>Using a basic 
search &amp; 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</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>The user I added 
immediately after making this change still works, all of the other users 
don't.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>I rebooted 
shortly thereafter and then tried to log back in.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>When doing this 
I'm greeted with the following error right as the shell should 
start:</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>: No such file or 
directory</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>The server is 
still operational and working just fine without me.&nbsp; But, I will eventually 
need to have access to it again.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>Please 
help!!!</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>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.</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Love LetterTW"><SPAN class=040043105-20091999>Any takers??? 
Please???</SPAN></FONT></DIV>
<DIV><FONT face="Love LetterTW"><SPAN 
class=040043105-20091999></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT size=2>
<P></FONT><FONT face="Love LetterTW">Cheers,</FONT><FONT size=2></P>
<P></FONT><A href="mailto:veenoghu@uvic.ca" 
style="BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)"><FONT 
color=#400040 face="Lucida Handwriting" size=5>Morgan Stewart</FONT></A><FONT 
size=2></P><FONT size=2><FONT face="Love LetterTW">
<HR>
</FONT>
<DD>
<P align=center></FONT></FONT><FONT face="Love LetterTW"><FONT color=#400040 
size=4><A href="mailto:chair@uvss.uvic.ca">Chairperson</A> of the <A 
href="http://www.uvss.uvic.ca/" 
style="BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)">UVic Students' 
Society</A> Local 44 of the <A href="http://www.cfs-fcee.ca/" 
style="BACKGROUND-COLOR: rgb(255,255,255); COLOR: rgb(0,0,0)">Canadian 
Federation of Students</A></FONT><FONT size=3></FONT></P>
<P align=center></FONT><FONT color=#400040 face="Love LetterTW" size=4>(250) 
721-8370 Work &amp; Fax (250) 472-4379</FONT><FONT size=2></P></FONT>
<DIV align=center>
<CENTER></DIV>
<DT><FONT face="Love LetterTW">&nbsp; </FONT></CENTER></DT></DIV>
<DIV align=center>
<CENTER>
<TABLE bgColor=#0000ff border=0 cellPadding=2 cellSpacing=10 width="69%">
  <TBODY>
  <TR>
    <TD width="15%">
      <P align=center><FONT 
      face="Franklin Gothic Heavy"><BIG><BIG><BIG><BIG><BIG><A 
      href="http://www.cfs.bc.ca/" style="COLOR: rgb(255,255,0)" color="#400040" 
      vlink="#400040" 
      link="400040">JOIN</A></BIG></BIG></BIG></BIG></BIG></FONT></P></TD>
    <TD width="85%">
      <P align=left><FONT color=#ffff00><FONT face="Love LetterTW"><BIG>The 
      campaign for higher education</BIG>...<BR><A href="http://www.cfs.bc.ca/" 
      style="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>

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