[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ3] CGI in user-directory: User not Privlidged
- Subject: Re: [cobalt-users] [RaQ3] CGI in user-directory: User not Privlidged
- From: "Robert G. Fisher" <rfisher@xxxxxxxxxxxxxxx>
- Date: Wed Apr 5 06:13:02 2000
On Wed, Apr 05, 2000 at 12:40:13PM +0200, Daniel Neuhaus wrote:
> "User not Privlidged".
> I've tried to chown these scripts to the siteadmin-user:
> chown nameofsiteadmin:site2 script.cgi
Correct ;-)
> Know I'll get the cgi-wrapper-message "Script File Not Found!"
> script.cgi is a simple Helloworld-Script. Any help would be
> appreciated!
Can you run the script from the command line? The three biggest
problems I see that cause this are as follows:
1) Improper permissions on the script ->
chmod 755 script.cgi
2) Improper #! line at the top of the script,
verify that it points to the right interpreter:
#!/bin/sh or #!/bin/bash for sh/bash
#!/usr/bin/perl for a perl script, etc.
3) Mangled end-of-lines, or end-of-lines hold the
DOS convention of a newline and carriage return.
cat script.cgi | tr -d '\r' > script2.cgi
(and try to execute script2.cgi)
--
Robert G. Fisher NEOCOM Microspecialists Inc.
System Administrator/Programmer (540) 666-9533 x 116