From owner-freebsd-newbies Sun Sep 19 23:15:45 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 1D0FC1571E for ; Sun, 19 Sep 1999 23:15:40 -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 XAA133404; Sun, 19 Sep 1999 23:15:39 -0700 Reply-To: From: "Morgan Stewart" To: Cc: Subject: RE: Locking myself out of Root @ Wheel Date: Sun, 19 Sep 1999 23:10:41 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0106_01BF02F4.313CB0C0" 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 In-Reply-To: Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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
This would work if I = had access to=20 a user that I can su with.
 
The only user I have = access to is=20 one that doesn't have access to su.
 
Any other=20 suggestions?
 
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??
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

 





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

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