USERMOD troubles including obliterated password!?!
From: Kevin (nobody_at_tek.com)
Date: 14 Dec 2004 18:06:30 GMT
Whenever I use /usr/sbin/usermod the password for the user I alter gets
reset to something that noone knows.
I use usermod like this:
usermod -G "adm,audio,camera,cdrom,man,scanner,someuser,usb" -L someuser
[My list of groups is actually about twice that long; I trimmed it
to be polite about line wraps.]
Then as "someuser" I run /usr/bin/groups, which reports:
adm adm audio audio camera camera cdrom cdrom \
man man scanner scanner someuser someuser usb usb
WHY would each group be listed twice?! If I reset the groups like this:
usermod -G "someuser" -L someuser
Then /usr/bin/groups reports "someuser" as the group exactly
once, which is what I expect.
After the usermod the next login by someuser doesn't work because
the password has been corrupted. I have to reset the user's
password as root with:
After that the user can again login.
The behavior of /usr/bin/groups is the same before and after
resetting the password, if that matters.
What's going on here?
-- PLEASE post a SUMMARY of the answer(s) to your question(s)! Unless otherwise noted, the statements herein reflect my personal opinions and not those of any organization with which I may be affiliated.