Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2000 11:09:59 -0800
From:      "Majid Almassari" <majid@ibroadcast.net>
To:        "Nelson" <shiver@mailandnews.com>, <FreeBSD-questions@FreeBSD.ORG>
Subject:   Re: messed up with root account.
Message-ID:  <007f01bf5ad5$2288fc80$1791ddd1@balfourplace.com>
References:  <008f01bf5ad4$26c0a830$054f4fc6@NELSON>

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

------=_NextPart_000_007B_01BF5A92.11726D20
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: 7bit

Hi there,
Boot in a singe user mode. (hit delete before the Kernel loads)  then it
will ask you what shell you want to use you can either specify the full bath
of the shell you are using, i.e., /usr/local/bin/bash or just accept the
default which I think is /bin/sh: once you did that you are logged in,
correct the problem and reboot hopefully that helps.

Majid Almassari, MSEE, MCP.
System Administrator.
iBroadcast, Inc.
(206) 223-5540
http://www.ibroadcast.net
  ----- Original Message -----
  From: Nelson
  To: FreeBSD-questions@FreeBSD.ORG
  Sent: Sunday, January 09, 2000 11:03 AM
  Subject: messed up with root account.


  Hi, all:
  I changed the default shell of root to "bash" from "sh"
  with "chsh" this command but I put the wrong directory
  path of bash in it.

  ex: the directory path of bash should be" /usr/local/bin/bash
       while I put it as: /bin/bash

  Now I can't login as root or su as root.
  I am new to BSD and please help~
  Thanks a lot!
  Nelson

------=_NextPart_000_007B_01BF5A92.11726D20
Content-Type: text/html;
	charset="big5"
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.2722.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi there, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Boot in a singe user mode. (hit delete =
before the=20
Kernel loads)  then it will ask you what shell you want to use you can =
either=20
specify the full bath of the shell you are using, i.e., =
/usr/local/bin/bash or=20
just accept the default which I think is /bin/sh: once you did that you =
are=20
logged in, correct the problem and reboot hopefully that =
helps.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Majid Almassari, MSEE, MCP.<BR>System Administrator.<BR>iBroadcast, =

Inc.<BR>(206) 223-5540<BR><A=20
href=3D"http://www.ibroadcast.net">http://www.ibroadcast.net</A></DIV>;
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:shiver@mailandnews.com"=20
  title=3Dshiver@mailandnews.com>Nelson</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:FreeBSD-questions@FreeBSD.ORG"=20
  =
title=3DFreeBSD-questions@FreeBSD.ORG>FreeBSD-questions@FreeBSD.ORG</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, January 09, 2000 =
11:03=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> messed up with root=20
  account.</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial>Hi, all:</FONT></DIV>
  <DIV><FONT face=3DArial>I changed the default shell of root to "bash" =
from=20
  "sh"</FONT></DIV>
  <DIV><FONT face=3DArial>with "chsh" this command but I put the wrong=20
  directory</FONT></DIV>
  <DIV><FONT face=3DArial>path of bash in it. </FONT></DIV>
  <DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial>ex: the directory path of bash should be"=20
  /usr/local/bin/bash</FONT></DIV>
  <DIV><FONT face=3DArial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while I put it =
as:=20
  /bin/bash</FONT></DIV>
  <DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial>Now I can't login as root or su as root. =
</FONT></DIV>
  <DIV><FONT face=3DArial>I am new to BSD and </FONT><FONT=20
  face=3DArial>pleas</FONT><FONT face=3DArial>e help~</FONT></DIV>
  <DIV><FONT face=3DArial>Thanks a lot!</FONT></DIV>
  <DIV><FONT face=3DArial>Nelson</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_007B_01BF5A92.11726D20--



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007f01bf5ad5$2288fc80$1791ddd1>