Solved

invalid password and stanza

Posted on 2009-07-08
3
1,209 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

758 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

20 Experts available now in Live!

Get 1:1 Help Now