[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

CHMOD

Posted on 1997-11-14
9
Medium Priority
?
360 Views
Last Modified: 2013-12-25
How do you use the CHMOD command?
One of my scripts says that a file needs to be chmoded 755

Thanks
0
Comment
Question by:jbwilson
  • 5
  • 3
9 Comments
 
LVL 3

Accepted Solution

by:
vmpn earned 0 total points
ID: 1831221
I'll post the answer in a sec
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1831222
The rights are as follows:
first digit=your rights, second digit=your group rights, third digit is others rights.

the number for rights is gotten by adding:
1- Execute
2- Write
4- Read

So for readonly access you do 744 so that you have 7-all rights and everyone else only read.

So CGI would need 711, you =ALL , others = Execute only.



0
 

Author Comment

by:jbwilson
ID: 1831223
Cool. Then where do I put it in the script? Anywhere?
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
LVL 3

Expert Comment

by:vmpn
ID: 1831224
In the directory where the server takes other pages like you regular html files or in its subdirectory (It migh have to have .cgi extention depending on the configuration of the server).
0
 
LVL 85

Expert Comment

by:ozo
ID: 1831225
In the directory where the server configuration says it takes scripts,
which may or may not be where it takes regular html files.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1831226
On most provider I know it could be any directory as long and files extention is .cgi.
0
 

Author Comment

by:jbwilson
ID: 1831227
I don' have .cgi, only .pl. Where in those files do I put it, on the top, bottom, middle, after a certain command, etc? I know which files it is needed on, I just don't know where in the files
I put it it, or for that matter, how it is typed in. CHMOD 744 is how it is typed in, isn't it? Thanks.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1831228
Could you tell me your service provider so I can go and find the procedure for installing pl scripts?
0
 

Author Comment

by:jbwilson
ID: 1831229
I'm just using http://rampage.ml.org (now www.neocerf.com), and it says to activate the cgi scripts, don't use CHMOD, but they refer to it when giving an example. I am using WWWBoard from Matt's Script achive... (www.worldwidemart.com/scripts/)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

864 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