How does init determine the user to run a daemon as
Roger Oberholtzer
roger
Fri Sep 23 11:34:52 PDT 2005
On Fri, 2005-09-23 at 12:30 +0100, Jan M wrote:
> Hi Roger,
>
> Thanks. How does init determine which user to run the daemon as? Is it the
> executable owner?
inittab runs it as root. However, the scripts that inittab may cause to
be run for each runlevel can choose to start a daemon as any user. Or
the daemon itself may fork to another user based on a config file it
likes. But the scripts in rcX.d start life as root.
>
> Jan
>
>
> "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/
> Kapellgrnd 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 !
>
More information about the Linux-users
mailing list