Solved

invalid password and stanza

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

829 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