Solved

PERL, CGI, and WPOISON

Posted on 2004-08-31
2
377 Views
Last Modified: 2013-12-25
My question is related to implementing a cgi script written in perl.  This will run on an apache server.  Information about this script can be found at http://www.monkeys.com/wpoison/

The script file on my site can be found at www.certifiedcomputing.com/users/users.gms .  I have set ".gms" to be handled as a perl extension on the server.

My problem is that every time I attempt to run the script, I get the following error:
wpoison: Error unlinking file `/tmp/wpoison.words': Operation not permitted

Can anyone lend a hand with this one?
0
Comment
Question by:Steve3k
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 300 total points
ID: 11947660
I had a look at the source for wpoison and it is generally very well written (although I can see a few C'isms creeping in).

The error you are receiving is coming from the operating system.  It appears that /tmp on your system has unusual permissions.

Do you have command line access?  If not, try running the following script

#!/bin/sh
echo "Content-Type: text/plain"
echo
ls -ld /tmp
df
0
 
LVL 1

Author Comment

by:Steve3k
ID: 11948071
Cool!  You turned me on to the right track.  Apparently my host has a problem with people running this script.  I changed the name of the files the script creates, and it now runs like a champ.  ::happy dance::

Thanks a lot!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Update a registry value to every user hive 15 72
Need to convert a simple VB script to PowerShell 3 65
exchange 2007, scripts 15 71
website content maintenance 3 76
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now