-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15-Jul-2002/23:50 -0500, Chet Nichols III <[EMAIL PROTECTED]> wrote: >Alright here goes.. > >I'm trying to set it up so each user can have a working cgi-bin folder in >their public_html folder. I added the AddHandler thing to allow .cgi as >cgi-script or whatever it was, but every time I try and run a script, it >says it doesn't exist, and then it says the cgi-bin folder doesn't have >permission to be viewed, but it does! However, users can run cgi scripts >OUTSIDE of the cgi-bin folder. So what's up with that? I've been messing >around for a weekend now, and nothing I've read seems to have helped. >Thanks in advance for the response, talk to you soon,
I usually just create a directory for them under Apache's cgi-bin. then make a link to their home dir. Assuming you have a subdirectory called "users" under Apache's cgi-bin, you can create a cgi-bin directory for a user in a script like this: #!/bin/sh # # Create a CGI directory for the user specified on the command # line: addcgidir username # # Make sure a username was specified. if [ -z "$1" ]; then echo "Syntax is $0 USERNAME" exit fi # Create a subdirectory for the user under the system CGI directory. mkdir /var/www/cgi-bin/users/$1 # Set the ownership and permissions on the new CGI dir so that the # user can create and delete files. chown root.$1 /var/www/cgi-bin/users/$1 chmod 775 /var/www/cgi-bin/users/$1 # Add a link to the CGI dir in the users public_html dir. ln -s /var/www/cgi-bin/users/$1 /home/$1/public_html/cgi-bin The advantage is that you don't have to edit Apache config files and restart the server every time you add a user. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene <mailto:[EMAIL PROTECTED]> 0x6C94239D iD8DBQE9NAZVpCpg3WyUI50RAhnQAKCbeiOoSCF+MGpypKsaGm+X6z0EawCgvhLH NTh8stEWfmuSwQYCK2RFExw= =Codw -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list