Page tree
Skip to end of metadata
Go to start of metadata

openITCOCKPIT 4.x

To reset the password of an LDAP user (or other Single sign-on services) please contact your Single sign-on administrator.

openITCOCKPIT has a CLI tool to reset a users password. Only local user account passwords can be reset.

oitc reset_password --print

The system get you a list of all users where a password reset is possible.

With the --print option, the password will be print to the terminal. In addition the user will receive an email with the new password.


openITCOCKPIT 3.x


At the moment there is no dictated cli tool available to reset a users password.

How ever you can use a SQL query to reset a users password.

To reset the password of an LDAP user (or other Single sign-on services) please contact your Single sign-on administrator.



To reset the password, you need the users E-Mail adress. If you don't know the adress, run the folowing command to get a list of all users

sudo mysql --defaults-file=/etc/openitcockpit/mysql.cnf -e "SELECT firstname, lastname, email FROM users ORDER BY email asc"



Replace test@example.org with the email adress of the user, you want to reset the password.

sudo mysql --defaults-file=/etc/openitcockpit/mysql.cnf -e "UPDATE users SET password='3de95ff770b08a8e86a21f79188238c056209962' WHERE email='test@example.org'"


The new password of the user is abc123.




  • No labels