How does init determine the user to run a daemon as

Jan M jan
Fri Sep 23 11:14:19 PDT 2005


Hi Roger,

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

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/  ·
· 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 ·
+····························+·······························+





More information about the Linux-users mailing list