Cannot create password entry

Hello.

I have just finished upgrading my QRTP machine using one of the
conference distribution CD’s and then using the Package Manager to
upgrade the software on my machine. After all this, I decided to set up
the users that would be using the machine and found that I couldn’t set
them up. As root, I would use the passwd utility to create a new user
and go through the list of questions that it poses. At the end of all
the questions, an error message stating “cannot create password entry”
appears. I checked the /etc/passwd file and confirmed that it wasn’t
there. I also noted that there was a file called /etc/npasswd that
contains the original contents of the /etc/passwd plus an entry
corresponding to the one I just entered. I am wondering why this is
doing this. I believe that my stuff is installed correctly. The result
of a uname -a is: QNX localhost 6.00 2001/02/22-08:59:07est x86pc x86.

If anyone has any ideas as to what is causing this to happen, I would
really appreciate it.

Thanks.

Rodney Lott

Hi,

Check the /etc directory and look for a file called .pwlock . If it is
there delete it. This file is created when you start to edit the
database and if you exit abnormally for some reason it can be left
there. If you exit normally it will be deleted. As long as it is there,
it prevents other attempts to change the password database.

Regards,

Barry

Rodney Lott <rod@fuelcelltechnologies.ca> wrote:

Hello.

I have just finished upgrading my QRTP machine using one of the
conference distribution CD’s and then using the Package Manager to
upgrade the software on my machine. After all this, I decided to set up
the users that would be using the machine and found that I couldn’t set
them up. As root, I would use the passwd utility to create a new user
and go through the list of questions that it poses. At the end of all
the questions, an error message stating “cannot create password entry”
appears. I checked the /etc/passwd file and confirmed that it wasn’t
there. I also noted that there was a file called /etc/npasswd that
contains the original contents of the /etc/passwd plus an entry
corresponding to the one I just entered. I am wondering why this is
doing this. I believe that my stuff is installed correctly. The result
of a uname -a is: QNX localhost 6.00 2001/02/22-08:59:07est x86pc x86.

If anyone has any ideas as to what is causing this to happen, I would
really appreciate it.

Thanks.

Rodney Lott

Hi, Barry.

There was never any .pwlock file there ( I had read about this and it
was one of the first things I checked ). At any rate, I have actually
made my system work. When I added a user and it did as I explained
below, I decided that I would do the following:

  1. copy the entry from the /etc/npasswd to /etc/passwd
  2. remove the password ‘x’ from this entry (ie. no password)
  3. I added a line at the end of the /etc/passwd file (in case it was
    having trouble with the lack of )
  4. I then logged in as that user and changed the password

Since I have done this, the passwd utility seems to be able to create
users no problem ( since I created another one after this the normal way
).

Thanks.

Rodney

Operating System for Tech Supp wrote:

Hi,

Check the /etc directory and look for a file called .pwlock . If it is
there delete it. This file is created when you start to edit the
database and if you exit abnormally for some reason it can be left
there. If you exit normally it will be deleted. As long as it is there,
it prevents other attempts to change the password database.

Regards,

Barry

Rodney Lott <> rod@fuelcelltechnologies.ca> > wrote:
Hello.

I have just finished upgrading my QRTP machine using one of the
conference distribution CD’s and then using the Package Manager to
upgrade the software on my machine. After all this, I decided to set up
the users that would be using the machine and found that I couldn’t set
them up. As root, I would use the passwd utility to create a new user
and go through the list of questions that it poses. At the end of all
the questions, an error message stating “cannot create password entry”
appears. I checked the /etc/passwd file and confirmed that it wasn’t
there. I also noted that there was a file called /etc/npasswd that
contains the original contents of the /etc/passwd plus an entry
corresponding to the one I just entered. I am wondering why this is
doing this. I believe that my stuff is installed correctly. The result
of a uname -a is: QNX localhost 6.00 2001/02/22-08:59:07est x86pc x86.

If anyone has any ideas as to what is causing this to happen, I would
really appreciate it.

Thanks.

Rodney Lott