[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Password protected directories & CGI



> > I would like to be able to run a CGI script (psupload.cgi) inside a
> password
> > protected directory (.htaccess).  This directory also happens to be a
> users
> > virtual site (http://www.domain.com/~user)
> >
> > Everything looks like it wants to work except, when I execute the
script,
> I
> > get a CGIwrap error stating:
> >
> > "Script does not have same UID"
> >
> > How do I get it to work?
> >
> > Brian Coughter

Brian,
Try changing ownership of the script to whatever that username folder is.
For example, if the directory is /users/jsmith/web, change the ownership of
the script to jsmith.
If the script does some kind of output, like writing to a file (message
board, for example); that could be where the problem is coming in. Chmod the
directory to 777 and/or look inside the script for what ownership the file
writes with. It might be writing with username 'nobody'; changing it to
jsmith might work.

Just guessing.

Carrie Bartkowiak