How does init determine the user to run a daemon as

A. Khattri ajai
Fri Sep 23 11:44:19 PDT 2005


On Fri, 23 Sep 2005, Jan M wrote:

> Thanks. How does init determine which user to run the daemon as? Is it the
> executable owner?

I think most stuff runs as root unless it takes steps to su to another
user. Apache for example will startup and then drop privs by becoming a
user called "apache" or "www" or "nobody"

In most cases there is a config file for most services.

> "Roger Oberholtzer" <roger at opq.se>
wrote in message > news:1127470081.25684.69.camel at acme.pacific...
> On Thu, 2005-09-22 at 20:26, Jan M wrote:
> > Hi,
> >
> > A couple of quickies:
> >
> > 1) How does init determine which user to run a daemon as?
> >
> > 2) How does init run a daemon as a user without knowing the password for
> > that user?
>
> init runs as root, who can su to anyone without a password. Same as the
> su command.
>
> >
> > Thanks,
> >
> > Jan
> >
> >
> >
> > _______________________________________________
> > Linux-users mailing list ( Linux-users at linux-sxs.org )
> > Unsub/Password/Etc:
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
> >
> > Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !
> +????????????????????????????+???????????????????????????????+
> ? Roger Oberholtzer          ?   E-mail: roger at opq.se        ?
> ? OPQ Systems AB             ?      WWW: http://www.opq.se/  ?
> ? Kapellgr?nd 7              ?                               ?
> ? P. O. Box 4205             ?    Phone: Int + 46 8   314223 ?
> ? 102 65 Stockholm           ?   Mobile: Int + 46 733 621657 ?
> ? Sweden                     ?      Fax: Int + 46 8   314223 ?
> +????????????????????????????+???????????????????????????????+
>
>
>
> _______________________________________________
> Linux-users mailing list ( Linux-users at linux-sxs.org )
> Unsub/Password/Etc: http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
>

-- 
hardwarily /hard-weir'*-lee/ adv.

 In a way pertaining to
   hardware.  "The system is hardwarily unreliable."  The adjective
   `hardwary' is not traditionally used, though it has
   recently been reported from the U.K.  See softwarily.



More information about the Linux-users mailing list