Solved

CHMOD

Posted on 1997-11-14
9
263 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now