pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
Dear folks, Two of three machines updated to xfce4.10 successfully. Now only one refuses to work. I encounter the error above. I have tried numerous approaches already, but none have seemed to work. Error message is as follows: Creating user `messagebus' with uid `556' pwd_mkdb: olivares gid is incorrect pwd_mkdb: at line #25 pwd_mkdb: /etc/master.passwd: Inappropriate file type or format pw: passwd file update: No such file or directory *** Error code 74 Stop in /usr/ports/devel/dbus. === Installation of dbus-1.4.12_2 (devel/dbus) failed === Aborting update I have looked into http://forums.freebsd.org/archive/index.php/t-22791.html http://freebsd.1045724.n5.nabble.com/How-can-I-rescue-my-passwd-file-after-corrupting-it-and-why-does-it-still-work-td3778319.html I have copied the file master.passwd.bak from /var/backups/ into /etc/ and it still does not work. I cannot get around this error. I cleaned up the stuff that I did not remove, now I have no working desktop. Is there a way to fix it via livecd/livedvd, or can I copy it from another machine and resync it? Or do I just flat install FreeBSD again and be done with it? Advice/Comments/Suggestions are appreciated and hopefully I can get back this machine one way or another. Best Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
On Mon, 28 May 2012 08:44:46 -0500, Antonio Olivares wrote: I have copied the file master.passwd.bak from /var/backups/ into /etc/ and it still does not work. I cannot get around this error. You have to make sure /etc/passwd and /etc/master.passwd have the same content (just that they differ in passwords and in file permissions). The database files /etc/(s)pwd.db will be created from those files by the pwd_mkdb command. This of course requires root access (which I assume you have made sure). Is there a way to fix it via livecd/livedvd, or can I copy it from another machine and resync it? You can use the files (_both_ files!) from before starting the dbus installation. Regenerate the databases with the pwd_mkdb command. Or do I just flat install FreeBSD again and be done with it? That is possible, but should be your last option. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
On Mon, May 28, 2012 at 10:46 AM, Polytropon free...@edvax.de wrote: On Mon, 28 May 2012 08:44:46 -0500, Antonio Olivares wrote: I have copied the file master.passwd.bak from /var/backups/ into /etc/ and it still does not work. I cannot get around this error. You have to make sure /etc/passwd and /etc/master.passwd have the same content (just that they differ in passwords and in file permissions). The database files /etc/(s)pwd.db will be created from those files by the pwd_mkdb command. This of course requires root access (which I assume you have made sure). Is there a way to fix it via livecd/livedvd, or can I copy it from another machine and resync it? You can use the files (_both_ files!) from before starting the dbus installation. Regenerate the databases with the pwd_mkdb command. Or do I just flat install FreeBSD again and be done with it? That is possible, but should be your last option. -- I have run the command as root user # pwd_mkdb -d /etc/master.passwd but it fails with a pam_auth() or I can't remember exact error message, I will need to run command and post the exact error message here :( Either do this, or install a desktop which does not depend on devel/dbus package(s). Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
On Mon, 28 May 2012 11:51:23 -0500, Antonio Olivares wrote: I have run the command as root user # pwd_mkdb -d /etc/master.passwd Looks wrong; the parameter -d is -d directory, explained as Store databases into specified destination directory instead of /etc. The coorect command should be # pwd_mkdb /etc/master.passwd See man pwd_mkdb for details. but it fails with a pam_auth() or I can't remember exact error message, I will need to run command and post the exact error message here :( Some file access error would be possible. Either do this, or install a desktop which does not depend on devel/dbus package(s). The dbus port is often used to enhance functionality, but it's not entirely required to run KDE, Gnome or Xfce (to name the big three). Just make sure X is compiled without it. Maybe some functionality might be missing, but if you don't depend on it... as for just automount, FreeBSD has a native solution that worked even before HAL and DBUS. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: pwd_mkdb: /etc/master.passwd: Inappropriate file type or format
Looks wrong; the parameter -d is -d directory, explained as Store databases into specified destination directory instead of /etc. The coorect command should be # pwd_mkdb /etc/master.passwd See man pwd_mkdb for details. but it fails with a pam_auth() or I can't remember exact error message, I will need to run command and post the exact error message here :( Some file access error would be possible. Either do this, or install a desktop which does not depend on devel/dbus package(s). The dbus port is often used to enhance functionality, but it's not entirely required to run KDE, Gnome or Xfce (to name the big three). Just make sure X is compiled without it. Maybe some functionality might be missing, but if you don't depend on it... as for just automount, FreeBSD has a native solution that worked even before HAL and DBUS. -- Polytropon all, I have run # vipw /etc/master.passwd and removed the offending line #25. Then I ran the command # pwd_mkdb -d /etc/master.passwd and it succeeded! :) Then I readded the user with adduser command and all is well. I got back my xfce desktop and it is working. Thanks to special folks like you and others who are very helpful. I was getting desperate and was about to throw the towel and reinstall FreeBSD on this machine. I had old backups from last year, but all the new changes would have been a waste to get back from those. Best Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org