Copying a file to /etc/passwd

From: Fabrizzio da Rosa Batista <fabrizzio_at_prodec.com.br>
Date: Thu, 10 Oct 1996 14:07:51 -0300

        
        Hy OSF-Managers,

        I'm using the C "system()" function to execute CP for copy a file to
/etc/passwd.
        system("cp /tmp/FILE /etc/passwd") "this FILE have same estructure of
                                            passwd"

        But when I use the "system()" function nothing happen, the function
return 127 ( This is a error code ).
        The program that use "system()" function is a CGI and your stick bit is
on.
  
        Anybody have idea how make this ?

        Thanks in advance,

      
----------------------------------
Fabrizzio da Rosa Batista
ProDEC Informatica - Digital Business Partner
e-mail : fabrizzio_at_prodec.com.br
fone : ( 051 ) 331.8822
----------------------------------
Received on Thu Oct 10 1996 - 19:05:34 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT