Author Topic: Change user password from over SSH  (Read 506 times)

jan.rok

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +2/-0
    • View Profile
Change user password from over SSH
« on: July 11, 2017, 02:36:01 pm »
Helo, I have Zentyal 4.5 connected remotely only over SSH. Howto change user password from command line?
Thanks. J. Rok

julio

  • Guest
Re: Change user password from over SSH
« Reply #1 on: July 12, 2017, 04:42:42 pm »
which user, zentyal local or domain user?

mrpsycho

  • Zen Apprentice
  • *
  • Posts: 46
  • Karma: +2/-1
    • View Profile
Re: Change user password from over SSH
« Reply #2 on: July 12, 2017, 04:51:40 pm »
use
Code: [Select]
smbpassd for AD user, and
Code: [Select]
passwd for local(system) user

« Last Edit: July 12, 2017, 04:58:31 pm by mrpsycho »

jan.rok

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +2/-0
    • View Profile
Re: Change user password from over SSH
« Reply #3 on: July 13, 2017, 12:10:08 pm »
For domain user.

I trying:
Code: [Select]
smbpasswd myname

Processing section "[global]"
ldb_wrap open of idmap.ldb
New SMB password:
Retype new SMB password:
Failed to find entry for user myname
.




jan.rok

  • Zen Apprentice
  • *
  • Posts: 24
  • Karma: +2/-0
    • View Profile
Re: Change user password from over SSH
« Reply #4 on: July 13, 2017, 12:11:09 pm »
All password expired after 365 days :(

mrpsycho

  • Zen Apprentice
  • *
  • Posts: 46
  • Karma: +2/-1
    • View Profile
Re: Change user password from over SSH
« Reply #5 on: July 13, 2017, 02:32:11 pm »
you can turn off this limits
Code: [Select]
samba-tool domain passwordsettings set --max-pwd-age=0
or
make it longer
Code: [Select]
samba-tool domain passwordsettings set --max-pwd-age=1000

to check password settings:
Code: [Select]
samba-tool domain passwordsettings show