Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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
    Hi,
    you need to change the username from 'nobody' to some previllaged user in the httpd.conf settings.
    Thanks,
    - Raja

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2014-07-12 19:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls