Solved

CHMOD files which have been created by CGI?

Posted on 1997-05-10
3
152 Views
Last Modified: 2013-12-25
I have a set of files in a directory that I want to make read and writeable.

However these files will not respond to any chmodding request and they return: Operation not permitted.

Is this because they were created using a cgi program? How can I overcome this problem?

This is an urgent request.

Thank You.
0
Comment
Question by:Jmz
3 Comments
 

Expert Comment

by:cyber020197
ID: 1827997
Do you get this error message when trying to chmod them at the command prompt.  If so, it's most likely do to the files being owned by user 'nobody', the standard uid for web servers.

If this is the case I've an answer for you.

regards,
scottwimer

0
 
LVL 1

Accepted Solution

by:
Fordream earned 200 total points
ID: 1827998
Have you tried chmodding with CGI? Check following 2 cases.

 First, a case that you tried to chmod file(s) are not owned by nobody. Unless CGI is not setuided, CGI runs without any permittion, expecting nobody's. If so, you can chmod with CGI by giving your CGI some permittions.(changing CGI's owner, setuid-ing your CGI, etc..)

 Second, a case that you made CGI with Perl script. Perl is very secured language. It prohibits many things having security violations. For more informations about perl security, you can find it from man page by typing "man perlsec" in shell prompt. Or I can send you that document if you can't find it.

0
 

Author Comment

by:Jmz
ID: 1827999
Thanks for the suggestions,

I did make the files with perl,

but *how* exactly do I fix it?
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

809 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