🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by purkayas Fri, 23 May 2003 10:00
A newbie INN install problem
#65428
Author: purkayas
Date: Fri, 23 May 2003 10:00
36 lines
2102 bytes
(A repost, but I *real* desperate!!!)

>I set up INN on an OpenBSD system (latest version) on a rather old machine
>(circa '95...), according to instructions and it all seems mostly working.
>I'm basically trying to create a private, local-groups only newsserver for
>friends.
>
>However, when running a program to connect to it, it does begin 
connecting,
>it tells me "server active-file contains no newsgroups; exiting." This
>depsite (I think) have several newsgroups added through commands like
>'ctlinnd this.sucks'
>
>One oddity: there is the phase where, as 'news' user, you 'touch history'
>and then 'makedbz -i'. For whateve reason, I could not in fact do this as
>news, but as root I could successfully makedbz.
>
>So, my active file:
>
>control 0000000000 0000000001 y
>control.cancel 0000000000 0000000001 y
>control.checkgroups 0000000000 0000000001 y
>control.newgroup 0000000000 0000000001 y
>control.rmgroup 0000000000 0000000001 y
>junk 0000000000 0000000001 y
>chat.general 0000000000 0000000001 y
>alt.fun 0000000000 0000000001 y
>this.sucks 0000000000 0000000001 y
>locale.newone 0000000000 0000000001 y
>
>My inn.conf has controlchan activated, also. I'm figuring that this is a
>somewhat simple problem, but I'm just at a loss for now. Hints would be
>greatly appreciated!

   - dev
Re: A newbie INN install problem
#65429
Author: John Miller
Date: Fri, 23 May 2003 12:05
20 lines
1802 bytes
purkayas@fas.harvard.edu wrote:

>One oddity: there is the phase where, as 'news' user, you 'touch history'
>and then 'makedbz -i'. For whateve reason, I could not in fact do this as
>news, but as root I could successfully makedbz.

That's a pretty good clue.  In both the directory where the history and
active files live, and also the directory at the top of the news spool, you
should make sure everything is owned by news:

        chown -R news.news *

-- 
John Miller

August 27, 1949:
        A Hall of Fame opened to honor outstanding members of the
        Women's Air Corp.  It was a WAC's Museum.

Re: A newbie INN install problem
#65430
Author: Jeffrey M. Vinocur
Date: Fri, 23 May 2003 13:46
19 lines
1566 bytes
In article <bal2qe$sej$1@n4vu.com>, John Miller  <usenet@n4vu.com> wrote:
>
>That's a pretty good clue.  In both the directory where the history and
>active files live, and also the directory at the top of the news spool, you
>should make sure everything is owned by news:
>
>        chown -R news.news *

But be careful *not* to do this on ~news/bin, because some
programs may need to be SUID or SGID, and changing ownership will
break that.

inncheck is a useful tool for catching some of these errors.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: A newbie INN install problem
#65437
Author: purkayas
Date: Sat, 24 May 2003 05:27
11 lines
1141 bytes
> But be careful *not* to do this on ~news/bin, because some
> programs may need to be SUID or SGID, and changing ownership will
> break that.

I was a big shmuck and just did that, but quickly figured out where I went 
wrong...

I'll fix that and see how it goes... thanks!

  -d
Re: A newbie INN install problem
#65433
Author: John Miller
Date: Sat, 24 May 2003 10:00
23 lines
1940 bytes
Jeffrey M. Vinocur wrote:

> But be careful *not* to do this on ~news/bin, because some
> programs may need to be SUID or SGID, and changing ownership will
> break that.

What programs need to be SUID or SGID if the entire news subsystem is owned
by news?  (I remember that from cnews, but not INN.)  

The reason I ask is that everything is working fine here, and I don't want
to have given out bum advice to anyone.  

All too often people do things as root, and in the process, creat root-owned
files in the news subsystem and break things that way.  

-- 
John Miller

Aphasia:
        Loss of speech in social scientists when asked
        at parties, "But of what use is your research?"

Re: A newbie INN install problem
#65439
Author: Jeffrey M. Vinocur
Date: Sat, 24 May 2003 14:44
28 lines
2130 bytes
In article <banfsc$68s$1@n4vu.com>, John Miller  <usenet@n4vu.com> wrote:
>
>What programs need to be SUID or SGID if the entire news subsystem is owned
>by news?  (I remember that from cnews, but not INN.)  

It's possible to have a configuration with no such files, I
believe.  But by far the most common configuration is to have
inndstart as SUID root (so that it can bind to port 119); most
people also have startinnfeed as SUID root.

And if you're using `ckpasswd -s`, you most likely need ckpasswd
to be SGID to something that can read the shadow password file,
although this is not the default (or recommended) configuration.


>All too often people do things as root, and in the process, creat root-owned
>files in the news subsystem and break things that way.  

Oh, indeed.  Everything in $pathspool and $pathdb, in particular,
needs to be writable by news.  (I think that making it all owned
by root, group news, g+ws, does work, but there's not so much
benefit to that configuration.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
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