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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0106_01BF02F4.313CB0C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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
>
>
>


------=_NextPart_000_0106_01BF02F4.313CB0C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0106_01BF02F4.313CB0C0--



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?NDBBILDCDHKKMPLMPMKBMEFOEBAA.veenoghu>