Koozali.org formerly Contribs.org

Change password for existing user using lazy admin tools?

Change password for existing user using lazy admin tools?
« 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?

Offline Stefano

  • *
  • 10,779
  • Skype account: maghissimo
    • Smeserver italian community
Re: Change password for existing user using lazy admin tools?
« Reply #1 on: August 29, 2013, 08:38:36 PM »
can you explain what are you trying to achieve?

thank you
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Re: Change password for existing user using lazy admin tools?
« Reply #2 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 :-)

Re: Change password for existing user using lazy admin tools?
« Reply #3 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

Offline stephdl

  • *
  • 1,500
    • Linux et Geekeries
Re: Change password for existing user using lazy admin tools?
« Reply #4 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Change password for existing user using lazy admin tools?
« Reply #5 on: September 09, 2013, 09:50:40 PM »
I ran this right from the command line. I did not attempt to modify lat-user.

Offline stephdl

  • *
  • 1,500
    • Linux et Geekeries
Re: Change password for existing user using lazy admin tools?
« Reply #6 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.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Re: Change password for existing user using lazy admin tools?
« Reply #7 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.

Offline stephdl

  • *
  • 1,500
    • Linux et Geekeries
Re: Change password for existing user using lazy admin tools?
« Reply #8 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
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,500
    • Linux et Geekeries
Re: Change password for existing user using lazy admin tools?
« Reply #9 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 ;)
« Last Edit: September 28, 2013, 06:32:00 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!