Re: can't login as anyone - not even as root!
--- Jerry McAllister <[EMAIL PROTECTED]> wrote: > > > > 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. While I believe the problem was in the permissions, -somewhere- I don't think it was as you are suggesting, becuase I -did- have enough permission to completely remove /etc and replace it with a backup /etc directory I had. I the end, I did a minimal install which over-wrote the basic boot files, and that did it. thanks for your comments - __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
> Hmm.. Pretty long but only the last few screens are important. Problem's > kinda weird, > really. This is a *LAST DITCH EFFORT*, but try this. It may work. (Note: > this assumes > you've got system sources around). > > OK boot -s > # mkdir /var/oldpwd > # mv /etc/master.passwd /etc/passwd /etc/group /etc/pwd.db /etc/spwd.db > /etc/login.conf /var/oldpwd > # cp /usr/src/etc/master.passwd /etc/ > # cp /usr/src/etc/group /etc/ > # cp /usr/src/etc/login.conf /etc/ > # pwd_mkdb /etc/master.passwd > # passwd root > # exit > > And if it all fails, well, you've got your old passwd files in /var/oldpwd. > If it works, great! Now you get to merge your accounts. Nope. I actually had a backup /etc directory from a week ago. I replaced the entire directory with the backup. No go. I then reinstalled via ftp the basic user package and now all is well. On review I noticed some /bin directories ownership had it's permissions changed to one of my users. Then it came back to me that I had been changing some permissions on user directories to deal with a mail permission issue. I must have let an extra . or / slip somewhere in my chown'ing. I wanted to -find- the problem as a matter of interest, but in the end, I had to get things up and running as soon as possible, and reinstalling was the fastest. It reinstalled the basics and left the rest of my installation intact. Thanks for your time to review the log, and your interest and comments. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
> > 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 > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
On Thu, 28 Aug 2003 21:40:20 -0700 (PDT) Dave Banning <[EMAIL PROTECTED]> wrote: > 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 > > 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. > I think the /etc/pwd.db line should contain at least two errors. If they aren't transcription errors one of them can be disastrous. 1) is there wheeel group, really ? 2) pwd.db is, as the name suggests, a file. The line should start with '-'. If it is a directory, it would have at least one permission 'x'. Mine is like this: %ls -l /etc/pwd.db -rw-r--r-- 1 root wheel 40960 Jun 24 15:11 /etc/pwd.db If pwd.db is indeed like that try remove it and do pwd_mkdb. horio shoichi > > > __ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
Hi, If the problem still exists try get master.passwd from /var/backups run the command # pwd_mkdb /etc/master.passwd Regards SSR From: Dave Banning <[EMAIL PROTECTED]> To: Sunil Sunder Raj <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: can't login as anyone - not even as root! Date: Thu, 28 Aug 2003 21:40:20 -0700 (PDT) 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 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 _ Access Hotmail from your mobile now. http://server1.msn.co.in/sp03/mobilesms/ Click here. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
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 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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
Hi, STEPS = As the os(FREEBSD) is starting it will display the following message: Hit [Enter] to boot immediately, or any other key for command prompt. Booting [kernel ] in 10 seconds... You should now ress the space bar, and you will see the following message: Type '?' for a list of commands, or 'help' for more detailed help. ok now type boot -s and press the enter key to start FreeBSD in single user mode. After the system boots, you should see the statement: Enter fill pathname of shell or RETURN for /bin/sh: Press the enter key and you will have a # prompt. [Mount the filesystems] At the command prompt. issue the mount command. This command will mount all the filesystems listed in your /etc/fstab file. # mount -t ufs -a [Change the root password] Issue the passwd command and you will be prompted to enter a new password for the root account. #passwd New password: passwd: updating the database... passwd: done [Change the manage password] #passwd manage #exit There is no need to reboot the operating system to go to multi-user mode. The exit command will cause the system to return to multi-user miode without a reboot. === From: Dave Banning <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: can't login as anyone - not even as root! Date: Thu, 28 Aug 2003 09:20:47 -0700 (PDT) All of a sudden, I can't login, even as root. I tried to set the password of root to nil (because I happened to be logged in as root at the time) and that didn't work either. Then, thinking that the machine was acting up, I rebooted. Now I am in deeper. I can't even access the machine. Any idea why this would happen, or more important, how I can get out? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" _ Got a wish? Make it come true. http://server1.msn.co.in/msnleads/citibankpersonalloan/citibankploanjuly03.asp?type=txt Best personal loans! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: can't login as anyone - not even as root!
> > >I didn't forget my password. I simply can't login. No one > can login. > > >Even when my root password is set to nil I can't login. > > > > Not even in single user mode? There is no login in single > user mode, > > you are root by default with no password. > > Yes, I get the root # prompt, but I can't use the command passwd. > It just prompts me for a password even though the password is null. > I used vipw so the master.passwd file is updated. That doesn't sound right, in single user mode the prompt is 'ok'. Are you mounting your filesystems? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: can't login as anyone - not even as root!
> All of a sudden, I can't login, even as root. I tried to set the > password of root to nil (because I happened to be logged in as root at > the time) and that didn't work either. > > Then, thinking that the machine was acting up, I rebooted. > Now I am in > deeper. I can't even access the machine. > > Any idea why this would happen, or more important, how I can get out? This is a frequent question, don't panic, see link below. http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FORGOT-R OOT-PW ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't login as anyone - not even as root!
On Thu, Aug 28, 2003 at 09:20:47AM -0700 or thereabouts, Dave Banning wrote: > All of a sudden, I can't login, even as root. I tried to set the > password of root to nil (because I happened to be logged in as root at > the time) and that didn't work either. > > Then, thinking that the machine was acting up, I rebooted. Now I am in > deeper. I can't even access the machine. > > Any idea why this would happen, or more important, how I can get out? Ctrl+Alt+Del [if you get the fancy menu, choose "boot in single-user mode"; otherwise...] Booting [kernel] in 9 seconds... OK boot -s [ ... ] use /bin/sh fsck -p mount -a ktrace -o /root/login.out login root Password: Login failed kdump /root/login.out | mail [EMAIL PROTECTED] -s "Re: can't login as anyone - not even as root!" Note: my syntax for kdump/ktrace may be a bit off, see their man pages. -- Josh > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't login as anyone - not even as root!
All of a sudden, I can't login, even as root. I tried to set the password of root to nil (because I happened to be logged in as root at the time) and that didn't work either. Then, thinking that the machine was acting up, I rebooted. Now I am in deeper. I can't even access the machine. Any idea why this would happen, or more important, how I can get out? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"