Thread View: news.software.nntp
6 messages
6 total messages
Started by AlterEQ
Sat, 26 Apr 2003 12:57
Possibly BoneHead Rookie Question
Author: AlterEQ
Date: Sat, 26 Apr 2003 12:57
Date: Sat, 26 Apr 2003 12:57
8 lines
931 bytes
931 bytes
Is it better to start /etc/init.d/inn2 as ROOT or as NEWS A EQ
Re: Possibly BoneHead Rookie Question
Author: Jeffrey M. Vinocur
Date: Sat, 26 Apr 2003 13:15
Date: Sat, 26 Apr 2003 13:15
12 lines
1293 bytes
1293 bytes
In article <9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com>, 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. -- Jeffrey M. Vinocur jeff@litech.org
Re: Possibly BoneHead Rookie Question
Author: AlterEQ
Date: Sat, 26 Apr 2003 14:06
Date: Sat, 26 Apr 2003 14:06
35 lines
2048 bytes
2048 bytes
On Sat, 26 Apr 2003 13:15:16 +0000 (UTC), jeff@litech.org (Jeffrey M. Vinocur) wrote: >In article <9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com>, >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. Running it as 'root' is what I have been doing. When I try running it as 'news' I get a password request. I type in the root password and it tells me authentication failed. It's not really any big deal, as I have been using root for a while with no problems. 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?? :^) 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. Thanx for your response, J....
Re: Possibly BoneHead Rookie Question
Author: 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
Re: Possibly BoneHead Rookie Question
Author: Remco Blaakmeer
Date: Sun, 27 Apr 2003 20:21
Date: Sun, 27 Apr 2003 20:21
36 lines
2602 bytes
2602 bytes
On Sat, 26 Apr 2003 14:06:20 GMT, AlterEQ <eq@pln.alternate..cc> wrote: > On Sat, 26 Apr 2003 13:15:16 +0000 (UTC), jeff@litech.org (Jeffrey M. > Vinocur) wrote: > >>In article <9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com>, >>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. > > Running it as 'root' is what I have been doing. > > When I try running it as 'news' I get a password request. I type in > the root password and it tells me authentication failed. > 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. I suspect you are using INN on Debian Linux, as I do. The /etc/init.d/inn2 script is intended to be run as root and starts INN as user news. Basically, it does this: su news -c /usr/lib/news/bin/rc.news > /var/log/news/rc.news 2>&1 If you start this script as user news, it will ask for user news' password. But user news doesn't have a valid password and shouldn't have one. Remco -- remco3: 21:40:02 up 3 days, 1:51, 8 users, load average: 2.30, 2.23, 2.09
Re: Possibly BoneHead Rookie Question
Author: AlterEQ
Date: Mon, 28 Apr 2003 15:21
Date: Mon, 28 Apr 2003 15:21
48 lines
2518 bytes
2518 bytes
That about sums it up perfectly... Thanx to all who responded... EQ On Sun, 27 Apr 2003 20:21:38 GMT, remco@remco.hn.org (Remco Blaakmeer) wrote: >On Sat, 26 Apr 2003 14:06:20 GMT, AlterEQ <eq@pln.alternate..cc> wrote: >> On Sat, 26 Apr 2003 13:15:16 +0000 (UTC), jeff@litech.org (Jeffrey M. >> Vinocur) wrote: >> >>>In article <9f0lavoum43n615r3qqjkp92ba73mfj6ur@4ax.com>, >>>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. >> >> Running it as 'root' is what I have been doing. >> >> When I try running it as 'news' I get a password request. I type in >> the root password and it tells me authentication failed. > >> 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. > >I suspect you are using INN on Debian Linux, as I do. The >/etc/init.d/inn2 script is intended to be run as root and starts INN as >user news. Basically, it does this: > >su news -c /usr/lib/news/bin/rc.news > /var/log/news/rc.news 2>&1 > >If you start this script as user news, it will ask for user news' >password. But user news doesn't have a valid password and shouldn't >have one. > >Remco
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads