Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Problems After Setting Permissions

Quote Reply
Problems After Setting Permissions
Everytime I setup the permissions on the admin area, to keep "everyone" out I get problems using the user cgi scripts. They state that it cannot include the links.cfg file, and other ones, because permissions are denied.

Anyone know what to do?
Quote Reply
Re: Problems After Setting Permissions In reply to
The user "Everyone" needs to be set to Read and Execute for all .cgi files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Including the ones in the admin directory? This is the error I get whenever I remove all permisions to the admin area for "everyone".

Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: D:\Users\christianradionetwork\search\cgi-bin C:/Perl/lib C:/Perl/site/lib .) at D:\Users\christianradionetwork\search\cgi-bin\add.cgi line 30.

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Problems After Setting Permissions In reply to
Sorry to continue bugging you, but I did what you said, removed permissions from the admin area and I receive this error:

Error including libraries: Can't locate d:/users/christianradionetwork/search/cgi-bin/admin/links.cfg at D:\Users\christianradionetwork\search\cgi-bin\add.cgi line 30.

Make sure they exist, permissions are set properly, and paths are set correctly.

What did I do wrong?
Quote Reply
Re: Problems After Setting Permissions In reply to
You have to use the complete path, including the drive letter, like the following in ALL the CGI scripts for the require line:

Code:
require "D:/Users/christianradionetwork/search/cgi-bin/admin/links.cfg";

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Do you have the links.cfg file in your /admin/ directory? If not, put it there along with the db.pl and db_utils.pl files.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Yes, they are. Boy I know there is some lame, easy reason why this is not working. But I cannot figure it out.
Quote Reply
Re: Problems After Setting Permissions In reply to
Drive letters are case sensitive in NT...

Try using D:/ rather than d:/.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
This sucks!

Error including libraries: Can't locate D:/users/christianradionetwork/search/cgi-bin/admin/links.cfg at D:\Users\christianradionetwork\search\cgi-bin\add.cgi line 30.

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Problems After Setting Permissions In reply to
Make sure you are using the COMPLETE absolute path to your files. That is the only thing I can think of is that you are not using the complete ABSOLUTE PATH.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Permissions can't have anything to do with it?
Quote Reply
Re: Problems After Setting Permissions In reply to
Related...however, you would see a completely different error message if it was a permission problem.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Well I dunno - the permissions are all correct, and it only happens after I restrict the access to the admin area. I am lost, guess I will not be able to use the script no matter how good I thought it was.

Thanks For Your Help Though
Dan
Quote Reply
Re: Problems After Setting Permissions In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Well I finally got it fixed. I changed the folder name from cgi-bin to scripts, and than gave it execute permissions on the IIS website manager, and than re-built all the pages, using build all, and now it works - not sure which thing fixed it, but eh.
Quote Reply
Re: Problems After Setting Permissions In reply to
Well...glad you figured it out. There is probably a mapping bug in your registry when you installed Perl 5.00503. You should be able to use the /cgi-bin/ in the web accounts directory.

Anyway...glad you fixed the problem.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Never Mind - My password was being stored in the cache, and there for it worked. As soon as I closed the browser, and cleared the caches it stopped working. Its something with my authentication, not the path files.
Quote Reply
Re: Problems After Setting Permissions In reply to
What are your authentication settings?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 27, 2000).]
Quote Reply
Re: Problems After Setting Permissions In reply to
in the users scripts folder I have everyone with read, write, delete and execute

in the admin directory and all subdirectories everyone has no permissions

administrators have full access to everything

so does system

[This message has been edited by DanFrenzy (edited March 27, 2000).]
Quote Reply
Re: Problems After Setting Permissions In reply to
In the admin directory AS I stated earlier today...you need to have everyone have Read, Write, and Delete permissions.

BECAUSE when you access the admin.cgi script via the Web, the server acknowledges the Everyone user.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems After Setting Permissions In reply to
Than everyone can modify things as they please.
Quote Reply
Re: Problems After Setting Permissions In reply to
It seems that there is a solution at:

www.gossamer-threads.com/scripts/forum/resources/Forum10/HTML/000273.html