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

Title: Change password for existing user using lazy admin tools?
Post 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?
Title: Re: Change password for existing user using lazy admin tools?
Post by: Stefano on August 29, 2013, 08:38:36 PM
can you explain what are you trying to achieve?

thank you
Title: Re: Change password for existing user using lazy admin tools?
Post by: pizzaco on August 29, 2013, 09:26:16 PM
I have 103 email accounts that I need to change the password for. I'd rather not type them in all manually :-)
Title: Re: Change password for existing user using lazy admin tools?
Post by: pizzaco on September 09, 2013, 07:43:34 PM
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:

Code: [Select]
perl -e "use esmith::util;esmith::util::setUserPassword( 'username', 'password');";  /sbin/e-smith/signal-event  password-modify username
Title: Re: Change password for existing user using lazy admin tools?
Post by: stephdl on September 09, 2013, 09:45:31 PM
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:

Code: [Select]
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
Title: Re: Change password for existing user using lazy admin tools?
Post by: pizzaco on September 09, 2013, 09:50:40 PM
I ran this right from the command line. I did not attempt to modify lat-user.
Title: Re: Change password for existing user using lazy admin tools?
Post by: stephdl on September 09, 2013, 10:32:32 PM
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.
Title: Re: Change password for existing user using lazy admin tools?
Post by: pizzaco on September 10, 2013, 12:18:38 AM
No problem. I ran it for each user separately and replaced
Code: [Select]
username and
Code: [Select]
password with the appropriate values.
Title: Re: Change password for existing user using lazy admin tools?
Post by: stephdl on September 28, 2013, 04:42:50 PM
I have performed several tests and you can change the password with  lazy admin tools if you issue the following CL

Code: [Select]
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
Title: Re: Change password for existing user using lazy admin tools?
Post by: stephdl on September 28, 2013, 05:39:31 PM
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 ;)