Solved

CHMOD

Posted on 1997-11-14
9
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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 84

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

740 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