How to run an application using sudo without a password?
        Posted  
        
            by 
                tutuca
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by tutuca
        
        
        
        Published on 2011-05-02T15:42:00Z
        Indexed on 
            2012/10/03
            21:56 UTC
        
        
        Read the original article
        Hit count: 239
        
sudo
|authentication
... but still be required for applications that need admin privilegies?
In order to allow the following:
$ apache2ctl restart
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
$ sudo !!
sudo apache2ctl restart             #no password asked
$                                   #works!
For reference I've seen this setup on amazon's e3 instances
Any idea?
© Ask Ubuntu or respective owner