You're not saying in what context you're trying to start your CGI
program.

The "nobody" userid isn't designed to log on interactively, but if
that's what you want to do, then, as root, you can enable the account
with
    # usermod –U nobody

You then should set the password for the account
    # passwd nobody
    [follow the prompts to change password]

Then you can log on (or "su" to) interactively.  When you're done with
your testing, you'll want to lock the account up again with:
    # usermod –L nobody

If you're running the sudo program on your system, you can use "nobody"
to test your program with
    $ sudo –u nobody /path/to/program
without enabling the account interactively.

Apache typically runs as "nobody", so if you place your CGI program
where it's accessible by apache, then that should be enough of a test. 
To ensure that apache is running as "nobody", do 
    $ ps –aux | egrep nobody
and you'll get output shown at the bottom of this message.  Note only
one process runs as "root", and the child processes run as "nobody". 
Of course, I'm using an apache installed from source and not an rpm, so
there's a small (miniscule?) chance that your server is configured to
not run that way (if you're running apache; maybe you're running
another web server).
    === Al




root     29145  0.0  0.2  5220 2632 ?        S    Jul16   0:00 /usr/local/apache
nobody   29146  0.0  0.5  6968 5004 ?        S    Jul16   0:09 /usr/local/apache
nobody   29147  0.0  0.5  6960 4860 ?        S    Jul16   0:10 /usr/local/apache
nobody   29148  0.0  0.5  6956 4800 ?        S    Jul16   0:11 /usr/local/apache
nobody   29149  0.0  0.5  6960 4856 ?        S    Jul16   0:09 /usr/local/apache
nobody   29150  0.0  0.5  7004 4928 ?        S    Jul16   0:11 /usr/local/apache
nobody   29151  0.0  0.5  6968 4888 ?        S    Jul16   0:11 /usr/local/apache
nobody   29152  0.0  0.5  6960 4872 ?        S    Jul16   0:10 /usr/local/apache
nobody   29153  0.0  0.5  7000 4920 ?        S    Jul16   0:10 /usr/local/apache
nobody   29166  0.0  0.5  6964 4908 ?        S    Jul16   0:10 /usr/local/apache
nobody   29167  0.0  0.5  6968 4832 ?        S    Jul16   0:10 /usr/local/apache



--- Ping Liu <[EMAIL PROTECTED]> wrote:
> Good afternoon,
> 
> I need to use 'nobody' user to test my CGI program. But I got an error
> message like
> 
> nobody account is currently not available
> 
> Does anyone have an idea? Could you please give me a hand? Thank you
> very much for your help.
> 
> 
> Ping
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to