From owner-freebsd-questions@FreeBSD.ORG Wed May 24 23:45:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63D3A16A429 for ; Wed, 24 May 2006 23:45:48 +0000 (UTC) (envelope-from gs_stoller@juno.com) Received: from outbound-mail.nyc.untd.com (outbound-mail.nyc.untd.com [64.136.20.164]) by mx1.FreeBSD.org (Postfix) with SMTP id 6696643D46 for ; Wed, 24 May 2006 23:45:47 +0000 (GMT) (envelope-from gs_stoller@juno.com) Received: from webmail62.nyc.untd.com (webmail62.nyc.untd.com [10.141.27.202]) by smtpout05.nyc.untd.com with SMTP id AABCHK6BGAC34ZG2 for (sender ); Wed, 24 May 2006 16:45:42 -0700 (PDT) Received: (from gs_stoller@juno.com) by webmail62.nyc.untd.com (jqueuemail) id LQ63NG9A; Wed, 24 May 2006 16:45:08 PDT Received: from [67.84.52.37] by webmail62.nyc.untd.com with HTTP: Wed, 24 May 2006 23:44:57 GMT X-Originating-IP: [67.84.52.37] Mime-Version: 1.0 From: "gs_stoller@juno.com" Date: Wed, 24 May 2006 23:44:57 GMT To: zuan@mylinux.net.my X-Mailer: Webmail Version 4.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Type: text/plain Message-Id: <20060524.164508.1775.1033718@webmail62.nyc.untd.com> X-ContentStamp: 13:6:270461883 X-MAIL-INFO: 25c3c36b736a6bc76aea8b5f8b1e5f2787f72adb3a3aaef7fa5eaaf7cbab7a8ac33a1bb7da8ac3939a4f2f4f6a9e8e6b5f4fa3 X-UNTD-OriginStamp: /s5f1SIGSI3+WdnoYQ8yRDHgdxEl0vaJUcAd4vLrRfwq/XboU7sXYA== X-UNTD-Peer-Info: 10.141.27.202|webmail62.nyc.untd.com|webmail62.nyc.untd.com|gs_stoller@juno.com Cc: freebsd-questions@freebsd.org Subject: Re: how to change roots shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2006 23:45:48 -0000 On Fri, May 19, 2006 08:17 PM, Izwan Mohd wrote: > Stoller wrote: > = >>On Fri, May 19, 2006 08:04 AM Andy Greenwood wrote >>> how is he supposed to complete step one? Single-user mode is = >>> going to be the best way to get this fixed, IMHO >> My reading of his question leads me to believe that his problem = >> was how to effect the change, not how to login. >> >> >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebs= d.org" > then you are not reading his question very well :p not actually right = = This is the first time that I have seen ":p", but it looks somewhat ins= ulting to me. If it is, I don't want to communicate with you anymore!!!= But I'll finish this for the others who may be reading it. > his problem was he acidently change the root shell to non-existant = > prog now he can't login to root account and want to recover it. > = >> >> how is he supposed to complete step one? Single-user mode is going = >> to be the best way to get this fixed, IMHO > = Have you tried Single-user mode? Well, I have. When one runs that way= , you run as root but with an empty PATH so you have to know where e= ach command that you want to invoke is located or you have to set up the= PATH variable. vipw is in /usr/sbin . This user should be more paranoid. He should create two other superuser accounts so that he has more chances of running as the superuser even if one superuser's account is discombobulated. I have at least 3 superuser accounts (starting different login shells= ). > = > yeah belive so too if he can't do all the command given before = > Single-User mode is the only way to change it