Link to home
Start Free TrialLog in
Avatar of jbwilson
jbwilson

asked on

CHMOD

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

Thanks
ASKER CERTIFIED SOLUTION
Avatar of vmpn
vmpn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmpn
vmpn

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.



Avatar of jbwilson

ASKER

Cool. Then where do I put it in the script? Anywhere?
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).
Avatar of ozo
In the directory where the server configuration says it takes scripts,
which may or may not be where it takes regular html files.
On most provider I know it could be any directory as long and files extention is .cgi.
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.
Could you tell me your service provider so I can go and find the procedure for installing pl scripts?
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/)