Solved

CHMOD and Perl

Posted on 1997-11-16
5
1,180 Views
Last Modified: 2010-05-19
In a few predefined scripts, people say that a file must be CHMODED 744 (or something like that) How do you CHMOD a file? (Where do I type it in- after a certain command, anywhere, etc, and how do you type it in?) (I know how to edit the files, just not how to use the CHMOD command.) Thanks.
0
Comment
Question by:mystery052997
  • 2
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
alamo earned 150 total points
ID: 1208615
chmod is a Unix command which changes file permissions. If you are not running on a Unix (or Unix-derivative) system you probably don't need to worry about it. If you are on WinNT for example, ignore the rest of this :-)

For the full scoop, issue the command "man chmod", but here's the summary. You run the chmod command from the shell (command line), giving it the desired permissions filenames (or wildcard) to be changed. The three digits of the permissions  setting corresponds to your own rights, your group's rights, and other user's rights. 4=read, 2=right, 1=execute, and add them together for various combinations. So in the example, 744, that means you personally have read+write+execute permission on the file, and your group and others both have read only rights. There are various other commands to chmod that are a little easier to use than setting permissions with the number, the manual page explains those.

Hope this is what you needed - good luck!
0
 
LVL 1

Author Comment

by:mystery052997
ID: 1208616
I'm running Win 95, but when you go to the readme file on the WWWBoard at www.worldwidemart.com/scripts/, it says these files need to be CHMODED. I am getting an error when I try to run it. the URL is http://rampage.ml.org/users/~mystery/wwwboard/wwwboard.html, and when I submit something it says that the perl script has an error. I have followed the directions to the letter, except for CHMODing it. Do you think you could try it? If it doesn't work, could you please tell me how to CHMOD files, just in case?
0
 
LVL 84

Expert Comment

by:ozo
ID: 1208617
It does not appear to be a chmod problem, when I open
http://rampage.ml.org/cgi-bin/~mystery/wwwboard/wwwboard.pl
Somehing does seem to execute, returning:
HTTP/1.1 200 OK
Server: Netscape-Enterprise/3.0
Date: Sun, 16 Nov 1997 20:32:41 GMT
Content-type: text/html
Connection: close

<html><head><title>General Messageboard ERROR: No Name</title></head>
<body><center><h1>ERROR: No Name</h1></center>
You forgot to fill in the 'Name' field in your posting.  Correct it below and re-submit.  The necessary fields are: Name, Subject and Message.<p><hr size=7 width=75%><p>
<form method=POST action="http://rampage.ml.org/cgi-bin/~mystery/wwwboard/wwwboard.pl">
Name: <input type=text name="name" value="" size=50><br>
E-Mail: <input type=text name="email" value="" size=50><p>
Subject: <input type=text name="subject" value="" size=50><p>
Message:<br>
<textarea COLS=50 ROWS=10 name="body">

</textarea><p>
Optional Link URL: <input type=text name="url" value="" size=45><br>
Link Title: <input type=text name="url_title" value="" size=50><br>
Optional Image URL: <input type=text name="img" value="" size=45><p>
<input type=submit value="Post Message"> <input type=reset>
</form>
<br><hr size=7 width=75%>
<center>[ <a href="#followups">Follow Ups</a> ] [ <a href="#postfp">Post Followup</a> ] [ <a href="http://rampage.ml.org/users/~mystery/wwwboard//wwwboard.html">General Messageboard</a> ] [ <a href="http://rampage.ml.org/users/~mystery/wwwboard//faq.html">FAQ</a> ]</center>
</body></html>

0
 
LVL 6

Expert Comment

by:alamo
ID: 1208618
There is no chmod on Win95, so it's impossible for you to do. Win95 doesn't have the sort of file security that could be causing your problem.

I tried that URL and got the same result... the problem is in your script configuration. The script runs up until the point where it thinks the message is ok and is about to save it, at which point it dies. This is almost certainly a path problem - are you certain you have the path to the messages correct in your   wwwboard.pl script? What about the other files it needs?
0
 
LVL 1

Author Comment

by:mystery052997
ID: 1208619
I got the script from Matt's Script archive. I must have configured it wrong. Please see my question entitled, "WWWBoard and Perl" (This time, I upped the point value, hoping that one of you will be able to find it out.) I'm just going to start over on the script.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

821 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