Description of Problem: Setting a password with either lpasswd or luseradd -p <newuser> results in an unusable password ("login incorrect" error). How Reproducible: Consistently on Roswell. Steps to Reproduce: (as root) 1. cd /usr/sbin 2. ./luseradd <newuser> 3. passwd <newuser> // Try to log in on TTY2 as <newuser>. You should be successful. Log back out and return to TTY1. 4. ./lpasswd -p <password> <newuser> 5. su jsmith // su will be successful, proving acount is valid 6. exit 7. exit // Try to log in on TTY2 as <newuser> with <password>. This will fail. Go back to TTY1 8. passwd <newuser> // Again log in on TTY2. You should be successful. NOTE: luseradd -p <password> <newuser> also results in an unusable password. Actual Results: Unusable accounts: useradd + lpasswd or luseradd + lpasswd Usable accounts: useradd + passwd or luseradd + passwd Expected Results: Should be able to log in with new password. Additional Information: The standard passwd command can change a password that was set with either lpasswd or luseradd -p <newuser>.
You were passing a crypted password with -p, yes? This works OK for me here.
User error: Intended to use plain password but transposed -p and -P options when reading --help on lpasswd. Carried error forward to luseradd. Works okay with -P option. Closing bug with apologies.