Article View: news.software.nntp
Article #65035Re: Possibly BoneHead Rookie Question
From: Jeffrey M. Vinocur
Date: Sun, 27 Apr 2003 04:09
Date: Sun, 27 Apr 2003 04:09
44 lines
2620 bytes
2620 bytes
In article <lb4lavc6lmv8oul984827pbd9tpe39h7hg@4ax.com>, AlterEQ <eq@pln.alternate..cc> wrote: >On Sat, 26 Apr 2003 13:15:16 +0000 (UTC), jeff@litech.org (Jeffrey M. >Vinocur) wrote: > >>AlterEQ <eq@pln.alternate..cc> wrote: >>>Is it better to start /etc/init.d/inn2 as ROOT or as NEWS >> >>That's not a script that comes with INN, so I don't know. I'd >>expect it should be run as root. > >I do have the /etc/init.d/inn2 but I am not sure if that is the >"script" as you mean it. Yup -- if you look at it, you'll probably find it's a /bin/sh script. >But I just went thru having to rebuild the news db and history. After >fighting with it over night, I realized that I had to run the >executable as 'news' and not 'root". Yea, I know, I know.. Common >sense. But, remember?? Boneheaded Rookie?? :^) Actually, I tend to flub that fairly regularly. Most INN administration tasks can be done as root, and it's mildly more convenient for me, so... >Anyways, that got me thinking about running INN as 'root' or 'news" >and wondering if running as 'root' might not be "good" for the server. Ah! Yes, you're right, running a service as root needlessly is a bad idea. However, take a look at the `ps` entry for innd, and notice which user is associated. INN needs some sort of root privs (either directly or via SUID inndstart) to bind to port 119, because that's a special port. However, immediately afterwards it becomes the normal news user. -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<b8fl5h$m7i$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mailReferences:
<9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com> <b8e0p4$mer$1@puck.litech.org> <lb4lavc6lmv8oul984827pbd9tpe39h7hg@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <b8fl5h$m7i$1@puck.litech.org> Subject: Re: Possibly BoneHead Rookie Question Date: Sun, 27 Apr 2003 04:09:21 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com> <b8e0p4$mer$1@puck.litech.org> <lb4lavc6lmv8oul984827pbd9tpe39h7hg@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 43 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1051416561 22770 66.218.0.75 (27 Apr 2003 04:09:21 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Sun, 27 Apr 2003 04:09:21 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)