Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 23:10:41 -0700
From:      "Morgan Stewart" <veenoghu@uvic.ca>
To:        <Smc659@aol.com>
Cc:        <freebsd-newbies@freebsd.org>
Subject:   RE: Locking myself out of Root @ Wheel
Message-ID:  <NDBBILDCDHKKMPLMPMKBMEFOEBAA.veenoghu@uvic.ca>
In-Reply-To: <ccb622f1.25172890@aol.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
This would work if I had access to a user that I can su with.

The only user I have access to is one that doesn't have access to su.

Any other suggestions?

I can booth the kernel in single-user mode and get in that way, but it doesn't
give me write access to the file system... Anyway around that??

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








>-----Original Message-----
>From: Smc659@aol.com [mailto:Smc659@aol.com]
>Sent: September 19, 1999 11:05 PM
>To: veenoghu@uvic.ca
>Cc: freebsd-newbies@freebsd.org
>Subject: Re: Locking myself out of Root @ Wheel
>
>
>OK i did the same thing the other day!!!!!!!!!
>
>If you have one user you can save your self. You also need to know root
>password.
>
>Ok login to the system with the user that still works.
>
>Login:workinguser
>Password: **********
>
>Then when you get to a prompt type: su
>That will allow superuser to login.
>This will appear:
>
>$su
>
>Then it will ask for a password
>
>$su
>Password:      <--------- This is were you enter root password, if
>corret you
>get in
>
>$su
>Password:
>#                   <---------- now your root and you can fix the problem
>
>
>To change the shell the right way use: chpass root -s /bin/sh
>
>(replace sh with the shell your going to change eg. /usr/local/bin/bash)
>
>If you need more helpe let me know
>Sam
>
>
>


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face="Love LetterTW">This would work if I had access to 
a user that I can su with.</FONT></DIV>
<DIV><FONT color=#0000ff face="Love LetterTW"></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face="Love LetterTW">The only user I have access to is 
one that doesn't have access to su.</FONT></DIV>
<DIV><FONT color=#0000ff face="Love LetterTW"></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face="Love LetterTW">Any other 
suggestions?</FONT></DIV>
<DIV><FONT color=#0000ff face="Love LetterTW"></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face="Love LetterTW">I can booth the kernel in 
single-user mode and get in that way, but it doesn't give me write access to the 
file system... Anyway around that??<BR></FONT></DIV>
<DIV><FONT color=#0000ff face="Love LetterTW">Cheers,</FONT></DIV>
<DIV>
<DIV>
<P><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>
<P><FONT size=2><BR><BR><BR><BR>&gt;-----Original Message-----<BR>&gt;From: 
Smc659@aol.com [<A 
href="mailto:Smc659@aol.com">mailto:Smc659@aol.com</A>]<BR>&gt;Sent: September 
19, 1999 11:05 PM<BR>&gt;To: veenoghu@uvic.ca<BR>&gt;Cc: 
freebsd-newbies@freebsd.org<BR>&gt;Subject: Re: Locking myself out of Root @ 
Wheel<BR>&gt;<BR>&gt;<BR>&gt;OK i did the same thing the other 
day!!!!!!!!!<BR>&gt;<BR>&gt;If you have one user you can save your self. You 
also need to know root<BR>&gt;password.<BR>&gt;<BR>&gt;Ok login to the system 
with the user that still 
works.<BR>&gt;<BR>&gt;Login:workinguser<BR>&gt;Password: 
**********<BR>&gt;<BR>&gt;Then when you get to a prompt type: su<BR>&gt;That 
will allow superuser to login.<BR>&gt;This will 
appear:<BR>&gt;<BR>&gt;$su<BR>&gt;<BR>&gt;Then it will ask for a 
password<BR>&gt;<BR>&gt;$su<BR>&gt;Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;--------- This is were you enter root password, if<BR>&gt;corret 
you<BR>&gt;get 
in<BR>&gt;<BR>&gt;$su<BR>&gt;Password:<BR>&gt;#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;---------- now your root and you can fix the 
problem<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;<BR>&gt;To 
change the shell the right way use: chpass root -s 
/bin/sh<BR>&gt;<BR>&gt;(replace sh with the shell your going to change eg. 
/usr/local/bin/bash)<BR>&gt;<BR>&gt;If you need more helpe let me 
know<BR>&gt;Sam<BR>&gt;<BR>&gt;<BR>&gt;</FONT> </P></BODY></HTML>
home | help

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