[Gllug] Apache access to root-owned files

Christopher Mocock chris at wavestore.com
Thu Jan 25 17:28:41 UTC 2007


Jason Clifford wrote:
> On Thu, 25 Jan 2007, John G Walker wrote:
> 
>>> sudo calling a single command to effect the necessary change?
>>>
>>> That way you can configure sudo to only allow that specific command
>>> to be used with root privileges.
>> But wouldn't that still involve users having to know and use the root
>> password?
> 
> No. You can configure sudo to allow use without a password and sudo never 
> needs the root password anyway - it uses the users password if you are 
> using passwords.
> 
> A command like this should work:
> 
> apache       ALL =   NOPASSWD: /usr/local/bin/command-to-run
> 
> Jason
> 

Excellent, that did the trick. Learnt something new about sudo too.

Thanks to all for the suggestions.

Chris
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list