Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!vixen.cso.uiuc.edu!news.sprintlink.net!news-peer.sprintlink.net!realtime.net!ecpi.com!tushar From: tushar@ecpi.com (Tushar Patel) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Can't login as root What to do? Date: 14 Oct 1996 06:48:41 GMT Organization: Real/Time Communications Internet customer posting Lines: 36 Message-ID: <53sno9$1392@news3.realtime.net> NNTP-Posting-Host: ecpi.com X-RTcode: a4d855fa32490ed12e61e261 X-Newsreader: TIN [version 1.2 PL2] Hi, Please help? I just made new machine and install all the software on it. I tarnsfered master.passwd file from the other machine. On the old machine some how my "bash" program was in the "/bin/bash" and on the new machine this program is in "/usr/local/bin/bash" directory. Now all the users I had on the old machine had "/bin/bash" entry in the password file. I did some thing stupid. I did "1,$ s/\bin/\bash/\/usr\/local/\bin/\bash/g" And that fix all the users, but the root entry on the new machine was "/usr/local/bin/bash" so when I used the above mentioned it changed my root enrty to: /usr/local/usr/local/bin/bash Now there is no "bash" at that location so when I try to login as root I can't login. I don't have any user in the "wheel" group so I am not able to su either. SO, I can login as 10 or more different user but can't login as root. I have worked on this machine for more then 4 weeks now. Any suggestion to solve this problem? Do I need to install all over again? Can I use another disk to boot and then go to problem disk? Any suggestion will be great help. Thanks, Tushar tpatel@ecpi.com