Koozali.org: home of the SME Server

massive change of passwords

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
massive change of passwords
« on: November 17, 2006, 07:40:35 PM »
I just installed one SME7 with default password = 12345678
Those def pwd/users where created by LAT.

Now I´d like to change default password for all users to 87654321.123

How can I do this by shell or LAT?
I could to swear LAT had one lat-password... but didn´t find it! :(


Thanks

Jáder
...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
massive change of passwords
« Reply #1 on: November 19, 2006, 05:27:00 AM »
Be sure to test, but if you run lat-users with the new password you should get a polite message saying 'updating existing entry' or 'updating existing values'.

In either case, you can run lat-dump -d, then edit the <servername>.Users file that gets created, replace all the passwords, then use lat-users to "restore" the dump file with the new passwords.

After running lat-dump you will have a new file 'lat-restore' that will show you the proper syntax for reloading the <servername>.Users file.

Don't run the whole lat-restore - that restores all of the dumped data (users, ibays, hosts, quotas, domains, groups, procmail rules, pseudonyms, and pptp permissions)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
massive change of passwords
« Reply #2 on: November 19, 2006, 11:56:36 AM »
Thanks by your tip.
I'll try that on a VM someday next week.
This was a just entering in production server... and I decide take no changes and changed all 233 accounts password by hand!
Not a pleasant task so will really try later!

Thanks

Jáder
...