commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
AIX lssec does not print the password attribute by policy
# lssec -c -f /etc/security/passwd -s an_user -a password
3004-697 Attribute "password" is not valid.
To get the password, you have to parse the /etc/security/passwd.
You can reuse this password using chpasswd:
echo "otheruser:D9oKC1v3VUt/I" | chpasswd -c -e -R compat
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.