1
vote
3answers
530 views

Using a non-root to deploy a git repo to the web root

What is the best way to set up users and permissions for a production web server that uses git to deploy to the server? Background Running Ubuntu 12.04, I have apache severing files under /var/www ...
0
votes
1answer
83 views

Can't access directory of another user after giving equivalent access to both

I've edited the /etc/sudoers file through visudo and added www-data ALL=(git) NOPASSWD: ALL git ALL=(www-data) NOPASSWD: ALL so now the user "git" should be able to ...
1
vote
1answer
1k views

How to edit /etc/sudoers to allow a user to run specific shell scripts?

I have a few scripts in a directory which I need www-data to run (from PHP) with root permissions. It seems like CMND_ALIAS= /path/to/script, /bin/sh www-data ALL=(ALL) NOPASSWD: CMND_ALIAS gives ...
1
vote
3answers
3k views

sudoers config to allow edit of files in particular directory (and children)

How can I provide sudo access for a user, but restrict them to only editing of files, and only files that are under a nominated directory. For example, I would like the userabc to be able to edit all ...
0
votes
3answers
906 views

sudo: apache restarting a service on CentOS

I need my web app to restart the dansguardian service (on CentOS) so it needs to run '/sbin/service dansguardian restart' I have a shellscript in /home/topological called apacherestart.sh which does ...
4
votes
6answers
2k views

Scripts That Need (some) Root Access

I have a general question about system administration scripts that require "some" commands to be executed with root access, and other as a normal non-root user (ie myusername, etc.). I should mention ...
14
votes
12answers
19k views

Why does sudo command take long to execute?

I've been picking up Linux (Fedora 10, then 11) over the past few months (and enjoying it immensely-- it's like discovering computers all over again, so many things to learn). I've added my user to ...