We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

CHMOD and Perl

mystery052997
on
Medium Priority
1,334 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.
Comment
Watch Question

Commented:
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!

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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?
ozo
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015

Commented:
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>

Commented:
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?

Author

Commented:
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.