Gitea dump problem (no password for git user)

Hi all,

I’m following what’s reported in the https://docs.gitea.com/administration/backup-and-restore section but, as my gitea instance was created from binary, it turns out that the git user has no password…

On Ubuntu/Debian:

adduser
–system
–shell /bin/bash
–gecos ‘Git Version Control’
–group
–disabled-password
–home /home/git
git

As I cannot “su git” in this case, what’s the right way to proceed ?

Switch to the user running Gitea: su git.
Run ./gitea dump -c /path/to/app.ini

thanks a lot

     Giampaolo

Just use runuser or sudo instead of su

if you are root you can su to the git user without a password so…
sudo su git

in a longwinded chained command