flipswitchingmonkey / gitea-spk

spk (Synology package) to install gitea into Synology NAS
MIT License
105 stars 23 forks source link

What is the password for user gitea? #29

Open BorisBrock opened 4 years ago

BorisBrock commented 4 years ago

I would like to access the files of my gitea installation. But to do so, the password for user "gitea" (created by this package) is required.

Where do I find this password?

wkobiela commented 4 years ago

Probably, you could just use root user while in SSH

Login to your NAS using your credentials, then

sudo -i

should do the work.

But if You want to change to gitea user, for example to create dump using ./gitea dump function, you should:

sudo -i cd /etc vi group aministration -> add gitea to that group

cd /etc vi passwd /var/packages/Gitea/target --> /var/packages/Gitea/target/gitea /sbin/nologin target --> /bin/sh

after this, You should be able to change user to "gitea" by

su - gitea

No password required. Just used this to create a backup and it works.