QNAP urbackup web gui password

Hi There, i have setup urbackup on a QNAP and has been running great, the issue i have is that i have forgotten the web gui password.

i have followed the general linux ways of resetting it but it is install on a QNAP nas it doesnt seem to work.

any ideas

thanks

rob

You mean by running the sql commands to reset the password? What did you do exactly and what was the output?

No not tried with the SQL commands, tried with the just tried running urbackupsrv command but doesnt seem to work or im not in the right place to do it.

this is specifically on a QNAP and seems to be different from normal linux

rob

ah i even didnt know that command parameter existed, cheers. I assume you have restarted the service after doing that? I suppose that is needed, also might help to clear cookies/site data. I might have confused the “sql commands” with some other sw, somehow i remember seeing that somewhere for urbackup, but might still be possible anyway, depending on how its stored ofcourse but i suppose there is a way to temporarily set an empty password for the admin account (the username part only shows up when you have multiple accounts) via some sql trickery. Oh and last but not least, it might help to put the new password in quotes when you reset it via urbackupsrv reset-admin-pw.

Thanks, tried that and now getting error: cannot get uid of users “urbackup”. errno: 0

context pls. that sounds like an error when you try to restart the service, but could also apply to trying to login to the gui.

So the complete command i have typed “urbackupsrv reset-admin-pw -a urbackup -u urbackup -p” plus a password to get the error above

for this Brief USAGE:
urbackupsrv reset-admin-pw [-a ] [-u ] -p
[–] [–version] [-h]

Well that makes a lot more sense, you see:


root@backup:/etc/fail2ban# urbackupsrv reset-admin-pw --help

USAGE: 

   urbackupsrv reset-admin-pw  [-a <user account name>] [-u <user>] -p
                               <password> [--] [--version] [-h]


Where: 

   -a <user account name>,  --admin-user <user account name>
     Admin account user name

   -u <user>,  --user <user>
     Change process to run as specific user

   -p <password>,  --password <password>
     (required)  New administrator password

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


   Reset web interface administrator password

What you are effectively were trying to do is multiple things, i also assume the user “urbackup” doesnt even exist as an account on the host and possibly not even as a user for urbackupsrv.

I am assuming this, but try urbackupsrv reset-admin-pw -a admin -p "new password"
for safety: systemctl restart urbackupsrv
And try to login to the web gui after that using the username admin and password “new password” (without quotes). You should be happy you didnt actually accidentally changed the account backupsrv runs as.

ERROR: Cannot get uid of user “urbackup”. Errno: 0

even though i am not referring to that account

you mentioned earlier you have reset the password

that makes sense now, the urbackup linux user account is just a service account, with specific rights, the process that runs the urbackupsrv is running as that account, it should not have a password set, but should exist and “be locked” (google that if you dont know what that means). It has specifc rights (usually via group memberships (id urbackup) and/or (specific) sudo rights. So what i think you need to do is restore it to the earlier state, possibly a sudo passwd -l urbackup should do the trick, then run the command to reset the admin user password (note this is not the same accountname) to gain access back to the web gui.

Thanks you have got me on the right path, im almost there though now its throwing up an error regarding the database - attempt to write a readonly database

if i stop urbackup then urbackup command doesnt work

WARNING: SQLite: statement aborts at 18: [INSERT INTO settings_db.si_users (name, password_md5, salt, pbkdf2_rounds) VALUES (?,?,?,?)] attempt to write a readonly database errorcode: 8
2026-01-12 18:34:00: ERROR: Error in CQuery::Execute - attempt to write a readonly database Stmt: [INSERT INTO settings_db.si_users (name, password_md5, salt, pbkdf2_rounds) VALUES (?,?,?,?)]
2026-01-12 18:34:00: User account “admin” not present. Created admin user account with specified password.
[urbackup@NAS004 QUrBackup]$ urbackupsrv reset-admin-pw -a admin -p newpassword
-sh: urbackupsrv: command not found
[urbackup@NAS004 QUrBackup]$

Actually, forget that, i can see what is going on, but please try to use codeblocks for commands and their output. I see a $ at the prompt, this means you are a regular user, use sudo or su, whatever applies in your case. The “-sh: urbackupsrv: command not found” could be because you have messed up that urbackup linux user account and now expecting to have a shell, but without those codeblocks i cant tell what belongs to what. Put some effort in man, you want this resolved, right?