Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to configure the Redmine Git hosting plugin but I'm struggling with some difficulties in setting up the proper permissions to the web and git users. When I access the plugin settings interface, the setting Git user is able to sudo to Web user? is marked as invalid.

The error message which is being logged on the server, is the following one:

Testing if git user("git") can sudo to web user("root")
Error while testing sudo_git_to_web_user:

As far I understand, the user running the web server is root and that doesn't seem well. How can I actually verify the user who is running the web server? I need to change it to www-data, since its expected user by gitolite.

share|improve this question
    
Belongs on ServerFault -- Moderators please and thank ya kindly. Regarding question: Never run a web server as root; that's very insecure! :) If you're running Apache you can edit the user in the Apache config file, whose location will depend on the distro/operating system you're running. For example, on Ubuntu, it's in /etc/apache2/envvars and you have to set export APACHE_RUN_USER=www-data; export APACHE_RUN_GROUP=www-data –  ÃŁŁǫǛȉЖΦΤїҪ Jul 17 '12 at 16:44
1  
@allquixotic: If you think a question belongs on another site, please just flag it. By mentioning the other site in the comments, users often post on multiple sites, which is discouraged. By flagging the question, the question will be migrated to another site if your flag was valid. Thanks –  Oliver Salzburg Jul 17 '12 at 17:57
    
This question is valid on Super User. –  KronoS Jul 20 '12 at 23:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.