How to run a sentence as root in perl : <p>I have made a perl program that add users to the system using apache2. It works when i run as a root but i am using it in a register from a html therefore the program is running by that user (i think) and it doesn't work. The error in /var/log/apache2/error.log is : <code>"AH1215: can't open_a /etc/passwd Permission denied at /usr/lib/cgi-bin/registro.cgi line 60"</code> that line is the following </p>

<pre><code>Linux::usermod-&gt;add($user,$password)
</code></pre>

<p>One solution must be give the permission +s using chmod +s to the registro.cgi but it is not allowed to use that way.</p>
