Setuid problem - gnupg
I'm trying to have my web server encrypt some information (using gpg) and email it to me, but I'm getting a permission denied error.
I have the setuid bit set (using "chmod 4755 gpg"), so I assumed that when my cgi script calls gpg that it would have root permissions on the file system.
When I change the permissions on the gnupg directory everything works ok.
So, is there a problem, or is my understanding of setuid incorrect?