Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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.

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-03-23 23:09 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.