CHMOD

How do you use the CHMOD command?
One of my scripts says that a file needs to be chmoded 755

Thanks
jbwilsonAsked:
Who is Participating?
 
vmpnConnect With a Mentor Commented:
I'll post the answer in a sec
0
 
vmpnCommented:
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
 
jbwilsonAuthor Commented:
Cool. Then where do I put it in the script? Anywhere?
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
vmpnCommented:
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
 
ozoCommented:
In the directory where the server configuration says it takes scripts,
which may or may not be where it takes regular html files.
0
 
vmpnCommented:
On most provider I know it could be any directory as long and files extention is .cgi.
0
 
jbwilsonAuthor Commented:
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
 
vmpnCommented:
Could you tell me your service provider so I can go and find the procedure for installing pl scripts?
0
 
jbwilsonAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.