Date: Fri, 29 Aug 2003 09:56:00 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: sky_tracker@yahoo.com (Dave Banning) Cc: questions@freebsd.org Subject: Re: can't login as anyone - not even as root! Message-ID: <200308291356.h7TDu1lF002372@clunix.cl.msu.edu> In-Reply-To: <20030829044020.14118.qmail@web12809.mail.yahoo.com> from "Dave Banning" at Aug 28, 2003 09:40:20 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > Thanks, Sunil for the steps, but I have tried that already. > > When I get to the # prompt in single user mode, I cannot use > the passwd command. I get the error;; > > passwd: error opening database: /etc/pwd.db: Permission denied > passwd: /etc/master.passwd: unchanged > Sort of sounds like you didn't remount root. When you come up in single user, root is mounted without write permission. You need to remount it. mount -u / will do it although supposedly doing a mount -a will effectively include that step as well. Still, we always do the extra step, maybe for old times. ////jerry > and permissions are as follows; > > # ls -tld /etc > drwxr-xr-x 17 root wheel 2560 Aug 28 09:16 /etc > > # ls -tld /etc/pwd.db > drw---r-- 1 root wheeel 40960 Aug 28 09:12 /etc/pwd.db > > I -can- execute vipw and change passwords. It updates all the files > master.passwd, spwd.db, passwd, and pwd.db without error. > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308291356.h7TDu1lF002372>