ndc restart... not honoring original user/group

Barry Margolin barmar at genuity.net
Wed Jan 10 18:33:39 UTC 2001


In article <93i1fi$74t at pub3.rc.vix.com>,
Jeffrey C. Albro <jeff at velvet.antistatic.com> wrote:
>
>
>I've noted in the documentation and proved by testing that ndc restart
>does not honor the orginal user/group of the running named...
>
>If you start named (8.2.2p7) with 
>
>named -u named -g named
>
>and type
>
>ndc restart
>
>it will run as root/root.
>
>Is there plans to fix this in 9?  

Instead of "ndc restart", use "ndc exec".  This sends a message to the
named process (via the /etc/ndc socket) telling it to exec() itself.  Since
this restarts it in the same process, the uid and gid don't change.

-- 
Barry Margolin, barmar at genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list