Document how to create initial admin user #22
Closed
opened 2021-07-15 14:17:39 +00:00 by 3wordchant
·
9 comments
No Branch/Tag Specified
master
upgrade-2f64ddf
master2
lfs
main
fix-domain
stop-first
config-update
renovate/configure
3.6.4+1.27.2-rootless
3.6.3+1.27.1-rootless
3.6.2+1.27.1-rootless
3.6.1+1.26.2-rootless
3.6.0+1.24.2-rootless
3.5.3+1.24.2-rootless
3.5.2+1.24.2-rootless
3.5.1+1.24.2-rootless
3.5.0+1.24.2-rootless
3.4.0+1.24.2-rootless
3.3.1+1.23.8-rootless
3.3.0+1.23.1-rootless
3.2.0+1.23.1-rootless
3.1.1+1.23.1-rootless
3.1.0+1.23.0-rootless
3.0.3+1.22.6-rootless
3.0.2+1.22.6-rootless
3.0.1+1.22.3-rootless
3.0.0+1.22.2-rootless
2.11.0+1.22.2-rootless
2.10.1+1.22.2-rootless
2.10.0+1.22.1-rootless
2.9.1+1.22.0-rootless
2.9.0+1.22.0-rootless
2.8.0+1.21.11-rootless
2.7.0+1.21.11-rootless
2.6.2+1.21.10-rootless
2.6.1+1.21.10-rootless
2.6.0+1.21.5-rootless
2.5.2+1.21.5-rootless
2.5.1+1.21.4-rootless
2.5.0+1.21.1-rootless
2.4.0+1.21.0-rootless
2.3.3+1.20.5-rootless
2.3.1+1.20.1-rootless
2.3.2+1.20.3-rootless
2.1.2+1.19.3-rootless
1.3.1+1.17.3-rootless
2.3.0+1.20.1-rootless
2.2.0+1.19.3-rootless
2.1.0+1.18.5-rootless
2.0.1+1.18.2-rootless
2.0.0+1.18.0-rootless
1.3.0+1.17.2-rootless
1.2.1+1.16.8-rootless
1.2.0+1.16.3-rootless
1.1.3+1.15.10-rootless
1.1.2+1.15.6-rootless
1.1.1+1.15.3-rootless
1.1.0+1.15.0-rootless
1.0.0+1.14.5-rootless
Labels
No items
No labels
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav (Trav Fryer)
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/gitea#22
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hello,
I juste deployed gitea, unfortunately I don't know how to create the first user. Could you provide some instructionns on how to proceed?
Thank you in advance.
Hey @aileoia, welcome, and thank you for the question!
I had a look at the Gitea command-line documentation, and I think something like this should work:
abra app run git_coopcloud_tech app gitea admin user create --name admin --username admin --password mysecretpassword(replace
git_coopcloud_techwith your app name)Hello @3wordchant , thanks for the reply.
In the mean time I had the chance to dig a bit and I came up with roughly the same command as the one you suggest and I run into the next problems:
It fails with
Indeed, if I look at the permissions, I see
So the folder
customis not writable which is the reason why it is not possible to create the folder above.If I change the permissions with
abra run ... chmod +w /var/lib/gitea/customand rerun thegitea create ...command, I getI'm not sure what's the issue. I remember I had managed to serve a gitea with a simple compose file and it had worked... maybe something with the compose-file?
Thank you so much for developping all this! If I can help, I'd be glad to!
@aileoia you are definitely helping already 😁 Thank you!
It looks like it's necessary to provide the path to the Gitea config, maybe it's non-standard? This indeed doesn't work for me:
but this does:
Does adding
-c /etc/gitea/app.iniwork for you too?I confirm that it works:
I'll now try to create an admin user.
worked, with the
-c /etc/gitea/app.iniThanks!
Does it mean something for this repo?
Should I make a PR updating at least the README?
Is there a way to easily create a new user with
abra? Or maybe generate the password for the first user along with the other secrets, as for nextcloud?Incredible, thank you! I'll review the PR soon. I do half-remember something about creating an initial user using an environment variable, I'll do some research unless you beat me to it 💪
I think this issue can be closed :)