[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CGIWrap Error?
- Subject: Re: [cobalt-users] CGIWrap Error?
- From: "Carrie Bartkowiak" <ravencarrie@xxxxxxxx>
- Date: Sun Feb 4 21:14:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> > I did, as su still will not allow it. Nobody is the owner of the script
see
>>error message below:
If you are logged in as root (su) you can change anything on any file you
want to.
(Which can be dangerous <g>.)
Admin is NOT su/root!
Telnet into your server.
Once you are logged in as admin, at the prompt type:
su
You will be challenged for a password. It is the same as the admin's
password - unless you've changed it. Judging from your posts, I don't think
you've changed it.
Now you'll see that your prompt has changed. Rather than 'admin', you will
be 'root'. *This* is superuser on the machine. Not admin.
Now change directories over to where this file is that's giving you such a
problem:
cd /the/full/path/to/formmail.pl
(This will be something like cd /home/sites/home/web/cgi-bin/formmail.pl)
And now change ownership of the file (chown): (In this example we'll change
it to 'admin'.)
chown admin formmail.pl
While you are there, check the permissions the script has. It should be
755 - rwxr-xr-x. Check this by listing out the contents of the directory,
all files, showing permissions:
ls -la
Scroll back up to formmail.pl and make sure it says rwxr-xr-x. If it does
not, change/modify the permission of it:
chmod 755 formmail.pl
Back up to the parent directory and see what permissions/ownership the
folder that formmail.pl is in has:
cd ..
ls -la
It should not have ownership of 'nobody', if it does: change it.
It should also be set to at least 755 - rwxr-xr-x: if it does not: change it
so that it does.
Try calling the script again in your browser. If it still does not work,
make absolutely SURE that the script has been uploaded in ASCII - I don't
care if you migrated the thing; upload it again in ASCII format. Also check
the referrers, IPs, path to perl, etc. in the script itself.
Carrie Bartkowiak