Solved

invalid password and stanza

Posted on 2009-07-08
3
1,220 Views
Last Modified: 2013-11-17
when running this command /usr/bin/pwdck -n ALL I receive this output
3001-402  The user "username" has an invalid password field in /etc/passwd.
3001-414  The stanza for "username" was not found in /etc/security/passwd.
....

I have two questions:
1) What does invalid password mean?
2) What is a stanza and what is the risk of not having a stanza?

Thanks!
0
Comment
Question by:ralmada
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 24808069
Hi,
first of all, this error is not critical!
Invalid password means that the user's password field in /etc/passwd indicates the presence of a password in /etc/security/users, but none is found there, or that the password doesn't adhere to your password rules.
This correlates to your second error. A stanza can be missing if the user was added to /etc/passwd by using an editor and not 'useradd' or 'smitty' and /etc/security/passwd was not changed, too, or if a migration tool was used (perhaps with wrong/missing parameters).
How important is the password of 'username'? If it's tolerable for you to reset it (or have the user reset it), simply use
pwdck -y [username]
This will report the error but fix it as well, by adding a stanza to /etc/security/passwd and resetting the password.
Subsequently it's only necessary for you or the concerned user to set a new password.
If you can do it as root on your own, simply enter
passwd [username]
enter the new password twice and enter
pwdadm -c [username]
which will avoid the requirement to change the password at next login.
If the user needs to get involved, set the password using 'passwd' as said above, but don't run 'pwdadm'. Give the new password to the user and ask them  to login to the system. The  user will then be prompted for a new password. He will have to enter the password he got from you and the new password twice.
That's all!
wmp
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 24808126
... what is a stanza?
A stanza is kind of a label in a textfile, indicating the begin of a parameter block.
It often takes the form

name1:
       parameter1
       parameter2
       parametern
name2:
       parameter1
       parameter2
       parametern
....
 where 'name...' is called the stanza.
Look at /etc/security/passwd or at /etc/filesystems and you will see!
0
 
LVL 41

Author Closing Comment

by:ralmada
ID: 31601302
Very detailed explanation. Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now