Solved

invalid password and stanza

Posted on 2009-07-08
3
1,243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

735 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