Technical article 117564

I get the error message, "passwd: resource: /etc/passwd-t could not be allocated due to: Cannot securely create new file Password cannot be changed; see Account Administrator".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I get the error message:

"passwd: resource: /etc/passwd-t could not be allocated due to: Cannot securely create new file Password cannot be changed; see Account Administrator"

when user's try to change their own passwords.

The error displays when running "passwd" and happens after the new password has been entered and re-entered for confirmation by the user. "root" can change the password without an issue.

or see:

"su killed" when attempting to su to another user.

Solution

It is likely that the permissions of /etc/ have changed.  These can
be checked by running "l -d /etc".  You should see:
drwxrwxr-x  27 bin      auth        8192 Dec 14 15:47 etc
If you see:
drwxr-xr-x  27 bin      auth        8192 Dec 14 15:47 etc

Run the command "chmod 775 /etc" and try again.

Also check the permissions of /tmp.  The directory should look like:
drwxrwxrwt   3 sys      sys         2560 Mar 11 12:21 tmp

If that fails, there are several tools to check the integrity of the Trusted Computing Base (TCB) database:

a) Run "/tcb/bin/authck -av | pg" and act on any of the problems
   listed.
b) Run "/tcb/bin/integrity -e | pg" and act on any of the problems
   listed.

As a double check, OpenServer supplies a number of tools to diagnose problems and these are:

c) /etc/authckrc (which can be run in Multi-User Mode)

d) /etc/tcbck -v

Failing that, you may wish to run a fuller check on the files on your server, such as:

fixmog -iv              (Interactive/Verbose)
custom -V symlinks

Alternatively, run a "System Verify" with "Strict Database Compliance" using the Software Manager.

Troubleshooting:
Trying su as root results in:
su: Your own ID is unknown.
and a login does not appear.
1. Check the permissions of su:
# l su
---s--s--x   1 root     auth       22700 Jul 18  2007 su@

2. Running authck fails with errors like:

root appears in /etc/passwd but cannot be retrieved with getprpwnam(root)

cannot create a Protected Password database entry for lp

every account has a problem.

3. Try moving /etc/auth/system/pw_id_map & /etc/auth/system/gr_id_map to /local and getting "authck -avy" to rebuild them.

4. Try using pwconv/pwunconv and if that gives an error that passwd could not be safely updated due to the existence of:

/var/opt/K/SCO/Unix/5.0.x/etc/passwd-t
(5.0.7 is 5.0.7Hw)
(5.0.6 is 5.0.6Ga)
Try removing /var/opt/K/SCO/Unix/5.0.6Ga/etc/passwd-t
5. Should "authck" complain of shadow-t in much the same way then this
   can also be removed although it may be necessary to either restore
   accounts if the passwords are stored in the /etc/passwd file
   because the /etc/shadow file has been deleted.  Use "pwconv" or
   "ap", if you have saved accounts, to restore the account passwords.

See also

tcbck(ADM)

ta114363, "How do I unretire a user in Improved or High Security?"

ta105601, "Changing password fails with "Password cannot be changed; see Account Administrator".

From the Xinuos technical article database, record 117564. Reproduced with permission. The original is at www.sco.com/ta/117564, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.