I have completely forgotten the user with administrator rights. Is there another way to give a user the administrator role?
Solved
Cubby
-
I have looked at the users for whom I now have the login details. None of them have an administrator role. Is there another way to give a known user the administrator role?
-
N nebulon has marked this topic as solved
-
If you have SSH access to the server, you can generate temporary owner account login credentials with:
cloudron-support --owner-login
-
N nebulon has marked this topic as unsolved
-
Oh my bad, didn't read the section. Currently you have to set this then in the database manually. Normally the first created users gets the admin flag. To give other users the admin flag, open a webterminal into the app and run the following command, replacing
<USERNAME>
accordingly:PGPASSWORD=${CLOUDRON_POSTGRESQL_PASSWORD} psql -h ${CLOUDRON_POSTGRESQL_HOST} -p ${CLOUDRON_POSTGRESQL_PORT} -U ${CLOUDRON_POSTGRESQL_USERNAME} -d ${CLOUDRON_POSTGRESQL_DATABASE} -c "UPDATE users SET admin=true WHERE username='<USERNAME>'"
-
N nebulon has marked this topic as solved