Re: user accounts messed up

2006-01-22 Thread Jona Joachim

Jona Joachim wrote:

On 21/01/06, Jona Joachim <[EMAIL PROTECTED]> wrote:
(...)

I created a master.passwd file from the backup file in /var/backups
and emptied the password field. Then I updated the database with
pwd_mkdb but I still can't login.


In fact it has nothing to do with the user database or the passwd file.
I reinstalled the base system and I found out the following: If I boot
with the newly installed /usr in place I can login. Then I can move the
/usr folder and mount my old /usr partition, set the lib paths with
ldconfig and then everything works fine. If I boot using the old /usr
partition I can't login and I am told my password is wrong.
I don't get it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: user accounts messed up

2006-01-21 Thread Garrett Cooper

On Jan 21, 2006, at 12:40 PM, Jona Joachim wrote:


On 21/01/06, Jona Joachim <[EMAIL PROTECTED]> wrote:
(...)

I created a master.passwd file from the backup file in /var/backups
and emptied the password field. Then I updated the database with
pwd_mkdb but I still can't login.


Sounds like PAM possibly may have gotten hosed. Any error messages on  
the screen when you try and login/change your password?

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: user accounts messed up

2006-01-21 Thread Jona Joachim
On 21/01/06, Jona Joachim <[EMAIL PROTECTED]> wrote:
(...)

I created a master.passwd file from the backup file in /var/backups
and emptied the password field. Then I updated the database with
pwd_mkdb but I still can't login.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: user accounts messed up

2006-01-21 Thread Marcel de Reuver

   Jona Joachim wrote:

Hi!
I did something quite stupid...
I installed postgresql from ports and created an unprivileged user
account for it. I wanted to install the database in /var/pgsql and
wanted to chown the folder to the unprivileged user.
To do this, I entered the following as root: chown -R /var/pgsql/
As this command took more than two seconds I presumed chown had
followed .. and so I hit Ctrl-C. After having done this I tried to
switch to the unprivileged user account with su and it said something
like "setuid not running". After having tried to recover from this
situation without success I decided to reboot the system. Now I can't
login to any user account anymore, not even root. I am told the
password is not correct. I tried to boot in single user mode, mount
/usr and change the root password with passwd but I am denied
permission to change master.passwd. Is it possible that the user
database is corrupt? I would be glad if anyone was able to help me.
Greetings, Jona
  

   In single user mode the file system is mouted readonly. You have to
   remount all the file systems read-write.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


user accounts messed up

2006-01-21 Thread Jona Joachim
Hi!
I did something quite stupid...
I installed postgresql from ports and created an unprivileged user
account for it. I wanted to install the database in /var/pgsql and
wanted to chown the folder to the unprivileged user.
To do this, I entered the following as root: chown -R /var/pgsql/
As this command took more than two seconds I presumed chown had
followed .. and so I hit Ctrl-C. After having done this I tried to
switch to the unprivileged user account with su and it said something
like "setuid not running". After having tried to recover from this
situation without success I decided to reboot the system. Now I can't
login to any user account anymore, not even root. I am told the
password is not correct. I tried to boot in single user mode, mount
/usr and change the root password with passwd but I am denied
permission to change master.passwd. Is it possible that the user
database is corrupt? I would be glad if anyone was able to help me.
Greetings, Jona
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"