Re:Ask HN: How can I create a webserver that runs Git comman...
by chatmasta on Thursday March 30, 2023 @10:26AM
(#35373172)
sudo -u nobody git pull
That said, "nobody" will have its own challenges, like the lack of a $HOME meaning there is no git config file for the user, meaning you'll need to add a bunch of specific arguments to every git command. You might want to create a locked down user just for running git.
That said, "nobody" will have its own challenges, like the lack of a $HOME meaning there is no git config file for the user, meaning you'll need to add a bunch of specific arguments to every git command. You might want to create a locked down user just for running git.