-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protection to disable Gitea when run as root (#17168)
Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: 6543 <6543@obermui.de>
- Loading branch information
1 parent
4afdb1e
commit f0bd1e9
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f0bd1e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is why Gitea is broken for Qnaps. sigh, Gogs it is, then
f0bd1e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted, there is an undocumented option to bypass this.
That being said, I would rather encourage you to run it as intended. 🙂
f0bd1e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well no, it is assuming uid 0 is root, but other accounts can have uid 0. That's where the trouble was. Took a while to track this down. And no, I don't need anyone getting in the way of my way of doing things. The past few years, everyone seems to be trying to stop people from doing things, slows everything down, prevents fixing things or running things securely. There is no way to start Gitea with no conf to specify that I need to run it with a uid of 0, reliably. A command-line option to bypass during initial conf creation would be nice. Then again, I'm just using Gogs. I don't like a lot of the UI of Gogs, but it works. I'm just going to end up with a portable SBC with a 10GbE+ custom NAS anyway. Gogs will suffice for testing performance, I guess. I've also just realized Gitea doesn't integrate with pre-existing Apache installations as easily, same for SSHd, so I'm going to have to just trash the installation and roll a home-made solution. Oh and, nothing against Gitea, just need it my way.
f0bd1e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set
I_AM_BEING_UNSAFE_RUNNING_AS_ROOT=true
to the initial section of the app.ini.