From owner-freebsd-questions Sat Jul 20 17: 1:47 2002 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 58BA337B400 for ; Sat, 20 Jul 2002 17:01:43 -0700 (PDT) Received: from mailhost.gu.edu.au (kraken.itc.gu.edu.au [132.234.250.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D5D43E42 for ; Sat, 20 Jul 2002 17:01:41 -0700 (PDT) (envelope-from steve@cit.gu.edu.au) Received: from hobbit.cit.gu.edu.au (IDENT:lv+a7YVQ1vmJHqJwwuVvEKzLCiocZdTj@hobbit.cit.gu.edu.au [132.234.86.7]) by mailhost.gu.edu.au (8.10.1/8.10.1) with ESMTP id g6L01a829741; Sun, 21 Jul 2002 10:01:36 +1000 (EST) Received: from localhost (steve@localhost) by hobbit.cit.gu.edu.au (8.11.6/8.11.6) with ESMTP id g6L01Yi25695; Sun, 21 Jul 2002 10:01:34 +1000 Date: Sun, 21 Jul 2002 10:01:34 +1000 (EST) From: Steven Goodwin To: Thomas Connolly Cc: Marc Schneiders , "FreeBSD_Questions (E-mail 2)" Subject: RE: Wheel ? In-Reply-To: <71ED4DBF1EA19A45A3765CA9548BE30A212E@server1.electrosoftsolutions.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 20 Jul 2002, Thomas Connolly wrote: > Ok, > Fortunately root was still logged in so when I logged out, the root prompt > came up and I fixed the password file. Now my question is, can I change the > shell to bash when I login as root or am I stuck with csh and then manually > entering the bash shell? Yes you can. Just log in as root, run chsh, and change your shell setting. Take note of any warning messages that chsh spews out when it tries to update the database. If you make a typo (or the shell doesn't exist), it will tell you something like "cannot find shell" although the modification will still be made. > Thanks, Welcs, Steve > Tom > -----Original Message----- > From: Marc Schneiders [mailto:marc@schneiders.org] > Sent: Friday, July 19, 2002 7:29 PM > To: Thomas Connolly > Subject: RE: Wheel ? > > Thomas, > > Have a look at your password file (command: vipw). It should specify > the shell used by root. If it says 'bash' there, and there is no bash > on your system, then it doesn't work. There is no bash standard with > FreeBSD (you find it in the ports if you like it; it is the standard > linux shell, I think). I do not understand, however, how bash would > end up in your password file. It is normally /bin/csh. > > So, change it to that. > > I hope this helps. > > Marc > > On Fri, 19 Jul 2002, at 16:19 [=GMT-0600], Thomas Connolly wrote: > > > Marc, > > > > Thanks for the help. I now get the following when I try to su: > > > > Jul 19 16:19:32 FreeBSD su: 'JoeBlow' to root on /dev/ttyv0 > > Su: bash: No such file or directory > > > > Then puts me back to 'JoeBlow' > > > > Any ideas > > > > Thomas Connolly > > > > > > -----Original Message----- > > From: Marc Schneiders [mailto:marc@schneiders.org] > > Sent: Friday, July 19, 2002 4:07 PM > > To: Thomas Connolly > > Cc: FreeBSD_Questions (E-mail 2) > > Subject: Re: Wheel ? > > > > On Fri, 19 Jul 2002, at 16:01 [=GMT-0600], Thomas Connolly wrote: > > > > > Can anyone tell me how to put myself in that > > > wheel? > > > > Add yourself after 'root' in the file /etc/group. It should look like: > > > > wheel:*:0:root,thomas > > > > after you edited it. > > > > I think you also have to log out and in after this to be able to do > > su. Maybe 'rehash' also works, if you use (t)csh? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message