Process Understanding



Hi

I'm trying to get my head round how processes start and how they get
their environment, especially env variables.

Let's say you have two scenarios, one where a user e.g www has the
following entry in /etc/passwd

www:x:500:500::/home/www:/bin/bash

and the other where the user has the following entry:

apache:x:48:48:Apache:/var/www:/sbin/nologin

The main difference between the two that I would like to focus on is
the that one user has a bash shell (www) while the other has no shell
(apache).

If both users are used to start an httpd process, then where and how
do the processess get their environment variables, i.e what files are
read in both cases e.g /etc/profile, /etc/bashrc etc.?

Thank in advance
Dan

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Thanks. Working! Re: Re: RE: RE: DBI->Connect returning UNDEF in cgi but not in standalone prog
    ... special thanks to Reidy Ron and Bill Costa. ... The suggestion Ron gave was absolutely correct. ... There were a whole lot of env variables different/missing between the 2 environments. ... >>So as per Ron and Bill, I also agree that environment variables might be incorrect. ...
    (perl.dbi.users)
  • Custom ("Bootleg"?) Command Environments
    ... during the last year regarding a bootleg command environment. ... Jim brought a copy of Donald Slutz' personal replacement command ... So I could LOAD into one of my DTAR2 segment, ... dcl ioa$ entry options, ...
    (comp.sys.prime)
  • Re: Executing a console program during the startup process like CHKDSK
    ... I'm sorry I just didn't know that in such a "Native API" application, ... NtProcessStartup is used as the entry point. ... check the environment to decide whether to execute in a "Native mode". ... run in the startup process. ...
    (microsoft.public.vc.language)
  • Re: Ruby vs. Groovy: your perspective
    ... If you're in an environment which is familiar to Java but not to Ruby, ... the barrier to entry is lower. ... language just because it's "better" some way would be wasting resources. ...
    (comp.lang.ruby)
  • Re: Photo: 10 Aug 08
    ... entry, it seems like his work really made a difference in that it ... raised awareness in the U.S. about the value of the environment. ... subject matter in a concrete way, not just as an image or ...
    (soc.culture.irish)