Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: pizzaco on August 29, 2013, 05:18:00 PM
-
I checked the Wiki but only saw options for setting passwords on new users.
Is there a way to use it to change the password for an existing user?
-
can you explain what are you trying to achieve?
thank you
-
I have 103 email accounts that I need to change the password for. I'd rather not type them in all manually :-)
-
In case anyone is interested, I found a way to do this from this thread:
http://forums.contribs.org/index.php?topic=13760.5;wap2
And ended up generating this command for each user:
perl -e "use esmith::util;esmith::util::setUserPassword( 'username', 'password');"; /sbin/e-smith/signal-event password-modify username
-
In case anyone is interested, I found a way to do this from this thread:
http://forums.contribs.org/index.php?topic=13760.5;wap2
And ended up generating this command for each user:
perl -e "use esmith::util;esmith::util::setUserPassword( 'username', 'password');"; /sbin/e-smith/signal-event password-modify username
Can you be more talkative please, did you add this code to lat-user or did you use directly a command line to perform this ?
If you have added some code lines to lat-user you should talk of this in bugzilla, and after that eventually write this to the wiki
Thanks
-
I ran this right from the command line. I did not attempt to modify lat-user.
-
ok, did you run this command line with a list of password or you did it for each user ?
sorry for the questions but I think all parts of our knowledge must be engraved in the rock of the wiki.
-
No problem. I ran it for each user separately and replaced
username
and password
with the appropriate values.
-
I have performed several tests and you can change the password with lazy admin tools if you issue the following CL
lat-users -a -c "harry ||| Quidditch"
I added this explanations to the wiki.
Update the account 'harry' with the new password 'Quidditch'.
see http://wiki.contribs.org/Lat-users#EXAMPLES
-
For now there is a problem when you try to use an input file, i'm not sure but it is not due to the password option.
see http://bugs.contribs.org/show_bug.cgi?id=7867
EDIT:Bug closed :(, due to a buggy vm
i have tested with the input file given by the contribs, and you can change the password as you want with this lazzy contrib ;)