[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] File ownership?
- Subject: RE: [cobalt-users] File ownership?
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Wed Dec 18 08:43:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> I have a PHP script that writes the output of a form to a csv file.
> The customer then goes to an address and downloads the text file to import
> into their system
> They then run a little Perl script from the browser to purge the
> order file
> The Perl script looks like this:
>
> #!/usr/bin/perl --
> rename ("/home/sites/site95/web/aformmail-1.1/email.txt",
> "/home/sites/site95/web/aformmail-1.1/email.old");
> system("cp",
> "/home/sites/site95/web/aformmail-1.1/empty.txt","/home/sites/site9
> 5/web/aformmail-1.1/email.txt");
> print "Content-type: text/html\n\n";
> print qq!
> <html><body><H1>Brochure Request File Purged\!</h1></body></html>!;
>
> The problem is that when it copies the empty file to the live file it does
> so with the wrong permissions. I have tried putting in a
> system("chmod"...)
> command to set them back but this doesn't work. I think this is a file
> ownership problem.
Who owns all of the cgis? (are they the same owner?)
Paul ASI