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 etcIf you see:drwxr-xr-x 27 bin auth 8192 Dec 14 15:47 etcRun 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 tmpIf 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 -vFailing that, you may wish to run a fuller check on the files on your server, such as:
fixmog -iv (Interactive/Verbose)
custom -V symlinksAlternatively, 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-t5. 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".