Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: User Executing my CGI Script

by quester (Vicar)
on Jul 01, 2009 at 00:17 UTC ( #776215=note: print w/ replies, xml ) Need Help??

in reply to Re^2: User Executing my CGI Script
in thread User Executing my CGI Script

You most likely want to use

su - su - nobody
and then run ssh-keygen as nobody. (The initial "su -" is only needed to allow you to "su - nobody" even if the nobody userid doesn't have a password, which is almost always the case. If you aren't the sysadmin, you will need his help for this, of course.)
This is probably much safer in the long run than trying to change the userid that Apache uses; there are a lot of security considerations to setting up an Apache userid without adding security holes to your system. In particular, if you have SELinux installed (typically Red Hat and Fedora will have it by default) there are a lot of rules that are specific to the nobody account. All other things being equal, you probably don't want to expend the effort to have to copy all those rules and then keep them maintained.

Comment on Re^3: User Executing my CGI Script
Download Code
Re^4: User Executing my CGI Script
by kulls (Hermit) on Jul 01, 2009 at 07:34 UTC
    you need to change the username from 'nobody' to some previllaged user in the httpd.conf settings.
    - Raja

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://776215]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2015-03-01 00:50 GMT
Find Nodes?
    Voting Booth?

    On my keyboard, Caps lock is:

    Results (465 votes), past polls