<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: allow sudo for www user to run root shell script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588667#M18853</link>
    <description>I tried, but still doesn't work !</description>
    <pubDate>Sat, 23 Jul 2005 19:15:43 GMT</pubDate>
    <dc:creator>'chris'</dc:creator>
    <dc:date>2005-07-23T19:15:43Z</dc:date>
    <item>
      <title>allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588644#M18830</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;howto allow sudo for www user to run root shell script:&lt;BR /&gt;&lt;BR /&gt;I put in /usr/local/etc/sudores:&lt;BR /&gt;---------------------------------------------------&lt;BR /&gt;%www  ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;www   ALL=(root) ALL,!/bin/sh &lt;BR /&gt;&lt;BR /&gt;---------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;but still get:&lt;BR /&gt;# sudo -u www sh /usr/local/www/cgi-bin/ntop/ntop.sh start&lt;BR /&gt;touch: /var/log/ntop.access.log: Permission denied&lt;BR /&gt; ntopbsd#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I know all security aspects, but I really need it.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Jul 2005 05:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588644#M18830</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T05:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588645#M18831</link>
      <description>'sudo -u www' will attempt to run the script as the 'www' user.&lt;BR /&gt;&lt;BR /&gt;Your sudoers say:&lt;BR /&gt;&lt;BR /&gt;Any user in the 'www' group can run any command without any password.&lt;BR /&gt;&lt;BR /&gt;The user 'www' can run any command (except /bin/sh) as 'root' only.&lt;BR /&gt;&lt;BR /&gt;So that's not going to work.&lt;BR /&gt;&lt;BR /&gt;As the 'www' user, you just want to issue 'sudo /usr/local/www/cgi-bin/ntop/ntop.sh start'.</description>
      <pubDate>Sat, 23 Jul 2005 05:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588645#M18831</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T05:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588646#M18832</link>
      <description>thanks,&lt;BR /&gt;&lt;BR /&gt;but I cannot do: &lt;BR /&gt;&lt;BR /&gt;# su www&lt;BR /&gt;This account is currently not available.&lt;BR /&gt;&lt;BR /&gt;to try it.&lt;BR /&gt;&lt;BR /&gt;I'd like to execute this root shell script via browser, using a perl script:&lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;&lt;BR /&gt;use CGI::Carp qw(fatalsToBrowser);&lt;BR /&gt;use CGI;&lt;BR /&gt;my $query = new CGI;&lt;BR /&gt;&lt;BR /&gt;# write the log&lt;BR /&gt;BEGIN&lt;BR /&gt;{&lt;BR /&gt;use CGI::Carp qw(carpout);&lt;BR /&gt;my $errorlog = "/var/tmp/errorlog.txt";&lt;BR /&gt;open(LOG, "&amp;gt;$errorlog") or die("Unable to open $errorlog: $!\n");&lt;BR /&gt;print LOG "Errors:\n";&lt;BR /&gt;carpout(*LOG);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;print $query-&amp;gt;header;&lt;BR /&gt;print "\n";&lt;BR /&gt;print "\n";&lt;BR /&gt;print "&lt;TITLE&gt;ntop startup script&lt;/TITLE&gt;\n";&lt;BR /&gt;print "&lt;STYLE type="text/css"&gt;\n";&amp;amp;lt;BR /&amp;amp;gt;print "h3 { color: red }\n";&amp;amp;lt;BR /&amp;amp;gt;print "a { text-decoration: none; font: bold 14pt/16pt Ariel, serif }";&amp;amp;lt;BR /&amp;amp;gt;print "a:hover { color: red } /* when mouse is over link */";&amp;amp;lt;BR /&amp;amp;gt;print "&lt;/STYLE&gt;\n";&lt;BR /&gt;print "\n";&lt;BR /&gt;print "\n";&lt;BR /&gt;print "&lt;CENTER&gt;";&lt;BR /&gt;print "&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;";&lt;BR /&gt;print "&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;";&lt;BR /&gt;&lt;BR /&gt;'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh stop' or die "cannot stop ntop: $!";&lt;BR /&gt;sleep(8);&lt;BR /&gt;$cc = 'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh start' or die "cannot start ntop: $!";&lt;BR /&gt;print "Status: ",$cc,"\n";&lt;BR /&gt;&lt;BR /&gt;print "";&lt;BR /&gt;print "";&lt;BR /&gt;&lt;BR /&gt;exit($cc);&lt;BR /&gt;----------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;but it doesn't work&lt;/CENTER&gt;</description>
      <pubDate>Sat, 23 Jul 2005 06:31:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588646#M18832</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T06:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588647#M18833</link>
      <description>and the user/group that your apache runs CGI's as?  www:www ?</description>
      <pubDate>Sat, 23 Jul 2005 06:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588647#M18833</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T06:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588648#M18834</link>
      <description>Oh incidentally, as you've got both the group modifier and the user modifier in there, it will take the 'user' first, and thus prompt for a password, rather than take the 'group' (of which doesn't).</description>
      <pubDate>Sat, 23 Jul 2005 06:41:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588648#M18834</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588649#M18835</link>
      <description>I think&lt;BR /&gt;&lt;BR /&gt;user: www&lt;BR /&gt;group: www&lt;BR /&gt;&lt;BR /&gt;how can I check them to be sure ?&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Jul 2005 06:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588649#M18835</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T06:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588650#M18836</link>
      <description>I changed to only:&lt;BR /&gt;&lt;BR /&gt;%www  ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;but still doesn't work.</description>
      <pubDate>Sat, 23 Jul 2005 06:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588650#M18836</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T06:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588651#M18837</link>
      <description>Those sudo settings work fine here as a CGI.&lt;BR /&gt;&lt;BR /&gt;What is your apache 'error_log' saying?</description>
      <pubDate>Sat, 23 Jul 2005 07:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588651#M18837</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T07:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588652#M18838</link>
      <description>[Sat Jul 23 13:51:33 2005] [error] [client 192.168.0.105] (13)Permission denied: exec of '/usr/local/www/cgi-bin/ntop/ntop4.cgi' failed&lt;BR /&gt;[Sat Jul 23 13:51:33 2005] [error] [client 192.168.0.105] Premature end of script headers: ntop4.cgi</description>
      <pubDate>Sat, 23 Jul 2005 08:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588652#M18838</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588653#M18839</link>
      <description>sorry this was an old entry &lt;BR /&gt;I don't have any errors or entries in  apache error log now, but still doesn't work.&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Jul 2005 08:30:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588653#M18839</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588654#M18840</link>
      <description>From the command line, as root, does the CGI execute without issues, and output what's expected?</description>
      <pubDate>Sat, 23 Jul 2005 08:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588654#M18840</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588655#M18841</link>
      <description>from command line as root:&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;# perl ntop4.cgi&lt;BR /&gt;Content-Type: text/html; charset=ISO-8859-1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;ntop startup script&lt;/TITLE&gt;&lt;BR /&gt;&lt;STYLE type="text/css"&gt;&amp;amp;lt;BR /&amp;amp;gt;h3 { color: red }&amp;amp;lt;BR /&amp;amp;gt;a { text-decoration: none; font: bold 14pt/16pt Ariel, serif }a:hover { color: red } /* when mouse is over link */&lt;/STYLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CENTER&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;Status: sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh start&lt;BR /&gt;bsd#&lt;BR /&gt;--------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;but ntop doesn't start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CENTER&gt;</description>
      <pubDate>Sat, 23 Jul 2005 08:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588655#M18841</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588656#M18842</link>
      <description>*nod* yup, thought so.&lt;BR /&gt;&lt;BR /&gt;If you look at your output, you can see the exact problem.&lt;BR /&gt;&lt;BR /&gt;Around your sudo lines, you've got forward-single-quotes (').  You need back-tick's (`).  Wrong character..</description>
      <pubDate>Sat, 23 Jul 2005 08:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588656#M18842</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T08:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588657#M18843</link>
      <description>I don't understand what you mean, my sudoers looks:&lt;BR /&gt;&lt;BR /&gt;# sudoers file.&lt;BR /&gt;#&lt;BR /&gt;# This file MUST be edited with the 'visudo' command as root.&lt;BR /&gt;#&lt;BR /&gt;# See the sudoers man page for the details on how to write a sudoers file.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# Host alias specification&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;&lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;&lt;BR /&gt;# Defaults specification&lt;BR /&gt;&lt;BR /&gt;# Runas alias specification&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;root ALL=(ALL) ALL&lt;BR /&gt;&lt;BR /&gt;# Uncomment to allow people in group wheel to run all commands&lt;BR /&gt;# %wheel ALL=(ALL) ALL&lt;BR /&gt;&lt;BR /&gt;# Same thing without a password&lt;BR /&gt;# %wheel ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;&lt;BR /&gt;# Samples&lt;BR /&gt;# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom&lt;BR /&gt;# %users  localhost=/sbin/shutdown -h now&lt;BR /&gt;&lt;BR /&gt;%www  ALL=(ALL) NOPASSWD: ALL&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Jul 2005 09:00:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588657#M18843</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588658#M18844</link>
      <description>In your perl routine, you've got:&lt;BR /&gt;&lt;BR /&gt;'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh stop' or die "cannot stop ntop: $!";&lt;BR /&gt;sleep(8);&lt;BR /&gt;$cc = 'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh start' or die "cannot start ntop: $!";&lt;BR /&gt;&lt;BR /&gt;These lines use the forward single quote (').  As you aren't using the system() call, it appears as if you want to subshell out, which means you should be using the back tick (`), not quote (').</description>
      <pubDate>Sat, 23 Jul 2005 09:04:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588658#M18844</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T09:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588659#M18845</link>
      <description>how should I change that ?&lt;BR /&gt;&lt;BR /&gt;can you post pls the correct syntax ?</description>
      <pubDate>Sat, 23 Jul 2005 09:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588659#M18845</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T09:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588660#M18846</link>
      <description>You have these lines:&lt;BR /&gt;&lt;BR /&gt;'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh stop' or die "cannot stop ntop: $!";&lt;BR /&gt;sleep(8);&lt;BR /&gt;$cc = 'sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh start' or die "cannot start ntop: $!";&lt;BR /&gt;&lt;BR /&gt;You need to change them to either:&lt;BR /&gt;&lt;BR /&gt;`sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh stop` or die "cannot stop ntop: $!";&lt;BR /&gt;sleep(8);&lt;BR /&gt;$cc = `sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh start` or die "cannot start ntop: $!";&lt;BR /&gt;&lt;BR /&gt;or use some form of system() and less control over it's output...</description>
      <pubDate>Sat, 23 Jul 2005 09:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588660#M18846</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588661#M18847</link>
      <description>thanks,&lt;BR /&gt;&lt;BR /&gt;I changed but now I get this error from the command line:&lt;BR /&gt;&lt;BR /&gt;# perl ntop4.cgi&lt;BR /&gt;Content-Type: text/html; charset=ISO-8859-1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;ntop startup script&lt;/TITLE&gt;&lt;BR /&gt;&lt;STYLE type="text/css"&gt;&amp;amp;lt;BR /&amp;amp;gt;h3 { color: red }&amp;amp;lt;BR /&amp;amp;gt;a { text-decoration: none; font: bold 14pt/16pt Ariel, serif }a:hover { color: red } /* when mouse is over link */&lt;/STYLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CENTER&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H1&gt;Software error:&lt;/H1&gt;&lt;BR /&gt;&lt;PRE&gt;cannot stop ntop: No such file or directory at ntop4.cgi line 32.&lt;/PRE&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;For help, please send mail to this site's webmaster, giving this error message&lt;BR /&gt;and the time and date of the error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;/CENTER&gt;</description>
      <pubDate>Sat, 23 Jul 2005 09:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588661#M18847</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588662#M18848</link>
      <description>Verify that this is the correct full path:&lt;BR /&gt;&lt;BR /&gt;/usr/local/www/cgi-bin/ntop/ntop.sh&lt;BR /&gt;&lt;BR /&gt;If it is, then change it from:&lt;BR /&gt;&lt;BR /&gt;sudo sh /usr/local/www/cgi-bin/ntop/ntop.sh &lt;START&gt;&lt;BR /&gt;&lt;BR /&gt;to just:&lt;BR /&gt;&lt;BR /&gt;sudo /usr/local/www/cgi-bin/ntop/ntop.sh &lt;START&gt;&lt;BR /&gt;&lt;BR /&gt;ensuring that /usr/local/www/cgi-bin/ntop/ntop.sh is executable (chmod +x /usr/local/www/cgi-bin/ntop/ntop.sh).&lt;/START&gt;&lt;/START&gt;</description>
      <pubDate>Sat, 23 Jul 2005 10:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588662#M18848</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-23T10:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: allow sudo for www user to run root shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588663#M18849</link>
      <description>I did these changes, but still get this error:&lt;BR /&gt;&lt;BR /&gt;# perl ntop4.cgi&lt;BR /&gt;Content-Type: text/html; charset=ISO-8859-1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;ntop startup script&lt;/TITLE&gt;&lt;BR /&gt;&lt;STYLE type="text/css"&gt;&amp;amp;lt;BR /&amp;amp;gt;h3 { color: red }&amp;amp;lt;BR /&amp;amp;gt;a { text-decoration: none; font: bold 14pt/16pt Ariel, serif }a:hover { color: red } /* when mouse is over link */&lt;/STYLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CENTER&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H1&gt;Software error:&lt;/H1&gt;&lt;BR /&gt;&lt;PRE&gt;cannot stop ntop: No such file or directory at ntop4.cgi line 32.&lt;/PRE&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;For help, please send mail to this site's webmaster, giving this error message&lt;BR /&gt;and the time and date of the error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;I don't really understand the path is correct.&lt;/CENTER&gt;</description>
      <pubDate>Sat, 23 Jul 2005 10:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/allow-sudo-for-www-user-to-run-root-shell-script/m-p/3588663#M18849</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-07-23T10:21:16Z</dc:date>
    </item>
  </channel>
</rss>

