Administration
Security

Emergency mode

7min
reset owner password if the password for authorization of a user with the owner status was lost or forgotten while using passwork, you can reset the password it is necessary to activate the password reset option in the passwork configuration file — config env linux — /var/www/init/config env windows server — c \inetpub\wwwroot\passwork\init\config env docker — /\<passwork>/conf/keys/config env add a line to the configuration file shell is emergency reset enabled=1 after resetting the owner password, you can change the value from 1 to 0 to disable the ability to reset again in a linux terminal or in powershell on windows server, reset the owner password using the following commands linux cd /var/www/ php /bin/console user\ owner\ password\ emergency\ reset windows server cd "c \inetpub\wwwroot\passwork\\" php \bin\console user\ owner\ password\ emergency\ reset docker cd /\<passwork>/ docker compose exec t php fpm sh c "cd /server/www && php /bin/console user\ owner\ password\ emergency\ reset" example of correct execution output new password 2cbnu$v open the authorization page in the passwork web interface, enter the owner login and the obtained password then set a new password for the user reset 2fa owner if the connected totp code for 2fa authentication of a user with owner status was lost while using passwork, you can perform a reset it is necessary to enable the ability to reset 2fa in the passwork configuration file — config env linux — /var/www/init/config env windows server — c \inetpub\wwwroot\passwork\init\config env docker — /\<passwork>/conf/keys/config env add a line to the configuration file shell is emergency reset enabled=1 aafter resetting the owner 2fa, the value can be changed from 1 to 0 to disable the ability to reset again in a linux terminal or in powershell on windows server, reset the owner password using the following commands linux cd /var/www/ php /bin/console user 2fa\ emergency\ reset owner windows server cd "c \inetpub\wwwroot\passwork\\" php \bin\console user 2fa\ emergency\ reset owner docker cd /\<passwork>/ docker compose exec t php fpm sh c "cd /server/www && php /bin/console user 2fa\ emergency\ reset owner" the example command uses owner (user login with the status owner ) after successful execution, the two factor authentication for the owner in passwork will be reset