Click to See Complete Forum and Search --> : permissions ?


neotrace
06-16-2001, 04:04 AM
i know chgrp changes the group ownership of a file or dir, but how do u change the user ownership???

Craig McPherson
06-16-2001, 04:06 AM
chown

ZacMacCrac
06-16-2001, 04:07 AM
chown to change owning user...
chmod to change permissions...

I recommend reading the man page for at least chmod :)

Craig McPherson
06-16-2001, 04:07 AM
Actually, chown can set both the ownership and the group ownershop.

"chown root.staff filename" will set filename's owner to "root" and the group owner to "staff".

neotrace
06-16-2001, 04:21 AM
alright well i guess i've done something wrong in my apache setup. I've used the lastest ver. of apache toolbox, i'm getting an internal server error when i attempt to run a .cgi file from the browser?

Craig McPherson
06-16-2001, 04:47 AM
Is the CGI file in a properly-defined CGI directory?

Is the CGI file a+x?

Check your errorlog, and it'll tell you exactly why the script didn't execute.

neotrace
06-16-2001, 06:55 PM
"Is the CGI file a+x?

Check your errorlog, and it'll tell you exactly why the script didn't execute."

I don't know the term a+x, I chmoded the cgi-bin directory to "chmod -R 755"

I'm getting the following error:

[Sun Jun 17 06:59:10 2001] [error] (2)No such file or directory: exec of /usr/local/apache/cgi-bin/ubb6_test.cgi failed
[Sun Jun 17 06:59:10 2001] [error] [client 192.168.0.3] Premature end of script headers: /usr/local/apache/cgi-bin/ubb6_test.cgi
[Sun Jun 17 06:59:48 2001] [error] (2)No such file or directory: exec of /usr/local/apache/cgi-bin/hello.pl failed
[Sun Jun 17 06:59:48 2001] [error] [client 192.168.0.3] Premature end of script headers: /usr/local/apache/cgi-bin/hello.pl
[Sun Jun 17 06:59:55 2001] [error] (2)No such file or directory: exec of /usr/local/apache/cgi-bin/hello.cgi failed
[Sun Jun 17 06:59:55 2001] [error] [client 192.168.0.3] Premature end of script headers: /usr/local/apache/cgi-bin/hello.cgi

Craig McPherson
06-16-2001, 10:53 PM
Originally posted by neotrace0:
<STRONG>(2)No such file or directory: exec of /usr/local/apache/cgi-bin/ubb6_test.cgi failed</STRONG>

Okay, I hate to ask the obvious question, but does /usr/local/apache/cgi-bin/ubb6_test.cgi exist??

neotrace
06-17-2001, 02:46 PM
yes the file is present!

neotrace
06-18-2001, 02:36 PM
~bump~, anyone got anyideas about why i may be having problems running cgi scripts?

JALU
06-18-2001, 03:08 PM
Is it set to be executable?

neotrace
06-18-2001, 03:15 PM
Some of the files on the server will run correctly (i know that's odd), i set the file with chmod a+x filename and still the results weren't postive! I don't quite understand the fastcgi mod, does it have to manually start or does apache start is automatically. Does anyone have a simple cgi script like a counter that i could setup to test my server?

[ 18 June 2001: Message edited by: neotrace0 ]