Problems with cgi and setting permissions (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


abbeyvet -> Problems with cgi and setting permissions (2/22/2001 20:41:00)

I am trying to get a cgi script set up and am running into difficulties with setting permission.

Various bits require different levels of permission - two levels in total, some are 755 (3X .cgi files), others 660 (one .txt file, one .cfg file and one .cgi file)

I am using digihost and they say at their site the following:

quote:
The /cgi-local directory itself and the cgi/perl scripts within must all be owned by the user and have the following rights:

755 - (rwx r-x r-x)


That's it!

Surely this cannot be so - almost all scripts have files requiring various different permissions. I am running other cgi files there but now realise that they are all set up with all files at 755, even if that is not what is required, which may not be a brilliant idea though they seem to work away fine.

I have not used any that required 660 before so have not really been aware of this.

When I try to set different permissions on any single file all files in cgi-local appear to take them on. Thus if I attempt to chmod one file to 660, all files becomes 660. I tried moving the ones requiring a different permission to a different directory under cgi-local but that didn't work.

I will contact digihost about this but as I know several people here have used them in the past I wonder if anyone has had a similar experience and how they worked it out.

Thanks.

LATER

Ok now things are a total mess. The stuff that was working previously (for a couple of weeks, quite happily) is now not working and I have contrived to somehow create two directories to which I am denied access so I cannot even delete the blasted things.

HELP!! I really need to at least get the stuff that was working previously going again.

I am having a horrible day


------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"

[This message has been edited by abbeyvet (edited 02-22-2001).]





storm -> RE: Problems with cgi and setting permissions (2/22/2001 16:19:00)

not sure if this will help but i'm having a simular problem. i was trying to chmod with ws_ftp and it kept changing all the files to the same permission. the host says to try telneting in to chmod the files. i haven't tried it yet so i can't tell you the outcome.

so if your using ftp try telneting and see what happens.





Gil -> RE: Problems with cgi and setting permissions (2/22/2001 16:26:00)

Storm's right Katherine - WS_ftp will chmod the entire cgi directory, use telenet to set individual files.

------------------
Gil Harvey
The Host Factory
Resellers are our speciality





abbeyvet -> RE: Problems with cgi and setting permissions (2/22/2001 16:35:00)

Grrr. Yes that is it, I am using WS_ftp.

I have never used telenet in my life and have no clue how to even start. Do I need a special programme or something?

This is a total pain. I have wasted hours on this already.

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"





Gil -> RE: Problems with cgi and setting permissions (2/22/2001 17:09:00)

You don't need anything for telnet - go to "start' -> "run" type "telnet".

But, you'll need to know some Unix code, unless this is an NT box, then I doubt telnet is even enabled.

------------------
Gil Harvey
The Host Factory
Resellers are our speciality





abbeyvet -> RE: Problems with cgi and setting permissions (2/26/2001 20:15:00)

Just as a follow up to this post, it turns out that ws_ftp does in fact chmod perfectly well - it just doen't tell you it has done so. Whan you click on a file or directory and select chmod you see not the permissions for that file but instead the last permissions you set.

See this from the ws_ftp knowledge base: http://support.ipswitch.com/kb/WS-19980825-JB02.htm

Confusing to say the least, but I suppose they must have some reason for doing it this way. I did wonder since other scripts I used were all working away happily in spite of apparantly having totally wrong permissions set.

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"





storm -> RE: Problems with cgi and setting permissions (2/26/2001 20:18:00)

hmmm, interesting. i'm going to have to get back in a take another shot at it as i can swear that when i applied a chmod to one file it applied the same permission to the rest, but i might be wrong.

and your right confusing to say the least. why the heck would i want to see that info anyway if i want to see what the permissions are that's what i want to see.

i was probably chasing my tail and didn't realize it.

thanks for the info

------------------
storm...
"Someone put forth the proposition that you can patition the lord with prayer, patition the lord with prayer...YOU CANNOT PATITION THE LORD WITH PRAYER"





Gil -> RE: Problems with cgi and setting permissions (2/26/2001 21:02:00)

Hmmm, just went to a cgi bin on my server - chmod'd A file (perl) - exited amd telenet'd in and it had changed the entire directory....

------------------
Gil Harvey
The Host Factory
Resellers are our speciality





storm -> RE: Problems with cgi and setting permissions (2/27/2001 20:57:00)

quote:
Originally posted by Gil:
Hmmm, just went to a cgi bin on my server - chmod'd A file (perl) - exited amd telenet'd in and it had changed the entire directory....

[/B]


thought so, i knew i wasn't going nuts

------------------
storm...
"Someone put forth the proposition that you can patition the lord with prayer, patition the lord with prayer...YOU CANNOT PATITION THE LORD WITH PRAYER"





abbeyvet -> RE: Problems with cgi and setting permissions (2/28/2001 20:12:00)

No, I think I am right.

If you go to a cgi-bin with ws_ftp and just go along setting permissions on a range of files as you want them to be, you will seem to be doing them all the same - click one you set to say 666 earlier and it will show up as 755 or something.

But click the 'dirinfo' button on the bottom right and you will see that the various permissions have been set just as you wanted them.

I have set up two quite complex cgi scripts using varied permissions(a news page maker allowing different levels of user and an ODP directory maker) in the last couple of days without problems once I realised this.

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"





storm -> RE: Problems with cgi and setting permissions (2/28/2001 20:47:00)

aaahhh, all righty then. i'll give it a shot today and see what happens...thanks for the info




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375