[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] [Raq4r] GnuPG: PHP help / what does PHP / Server run as?
- Subject: RE: [cobalt-users] [Raq4r] GnuPG: PHP help / what does PHP / Server run as?
- From: "Liam DelaHunty" <mail@xxxxxxxxxxxxxxxxx>
- Date: Sun Nov 25 16:04:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
figured it out...permissions!
chmod 777 .gnupg
cd .gnupg
chmod 666 trustdb.gpg
chmod 604 secring.gpg
chmod 604 random_seed
chmod 644 pubring.gpg
Kind regards,
Liam DelaHunty
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Liam DelaHunty
Sent: 25 November 2001 22:34
To: Cobalt-Users
Subject: [cobalt-users] [Raq4r] GnuPG: PHP help / what does PHP / Server
run as?
Hi,
I'm wading through a book (PHP and MySQL Web Development by Luke Welling &
Laura Thomson) and am trying to adapt one of their examples.
I want to generate a encrypted email working where I log into the secure
backend of a site, and use a form to query several tables from a database,
collate the results of sales and then encrypt and send it to a specific
external email address. I've also looked at some external references on the
subject, such as webmonkey, and in the archives. They tend to state that I
need to become the PHP user, or server user depending on what you read...Now
the book suggested that the server runs as nobody
so I su root
and pico /etc/passwd
to set nobody home directory to /tmp
I've uploaded a public key to /tmp/
then
gpg --import /tmp/keyfile
gpg --edit-key 'Persons Name <name@xxxxxxx>'
trust
But the form doesn't work.
So I generated a key for nobody, then imported etc...still doesn't work,
Now I've come to think that the server user is httpd, is that correct? Who
is the PHP user, and how can you tell, I've done ps -aux. Is PHP just part
of apache/httpd? I've just got a regular RAQ4r with PHP turned on in the
GUI.
if I su httpd
and I try adding the key to it's ring I get a permission denied
so if root I thought "gpg -u httpd --import keyfile" etc might make it
work...nope !
So has anyone had any success on a RAQ with GnuPG and PHP? As always, any
help gratefully received, and thanks for taking the time to read and ponder
this.
Kind regards,
Liam DelaHunty
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users