I'm attempting to create a script to allow my level 1 techs to change user's passwords.
zmprov works if I:
su - zimbra
but if I type:
su - zimbra zmprov sp firstname.lastname@example.org temppw
I get this output:
/opt/zimbra/bin/zmprov: line 17: /opt/zimbra/zmjava: No such file or directory
/opt/zimbra/bin/zmprov: line 17: exec: /opt/zimbra/zmjava: cannot execute: No such file or directory
Does anyone know what causes this or the fix?
Thanks in advance.
Use the -c switch of su.
su - zimbra -c 'zmprov sp email@example.com temppw'
Is it possible to force the users to change the password after assigning them a temp password using zmprov?
Thank you, I am still learning my way around the zimbra CLI, this will help a lot.