Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Application is for a multiple server standardization script

Looking for a way in a shell script to check if the password for an OS account (AIX) matches a standardized plain text password.

The catch is that there is no root access, no c compiler or python , and I cannot install any additional software including expect.

So far I have not been able to find a solution...any ideas?

share|improve this question
Sounds like a bad idea...that means you have a clear-text list of every user's password, which you will want to keep in sync with whatever is being used for the OS authentication? It sounds like what you really want to do is to authenticate users against (some) existing service. You didn't say if the OS is authenticating against LDAP/NIS/etc-passwd or ssh public key authentication or...? Or, will your script passwd differ from the OS passwd? (Otherwise, obviously, if the user is logged-in, you can assume they are authenticated and there is no need to re-authenticate.) – michael_n Jun 19 '13 at 1:19
A non-root user cannot read an OS account's password, so I'm not sure there is a solution. – Jeff Schaller Jun 8 '15 at 13:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.