🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Erik Mouritzen Thu, 16 Sep 1999 00:00
INN 2.3, inndstart problem
#39931
Author: Erik Mouritzen
Date: Thu, 16 Sep 1999 00:00
39 lines
1761 bytes
Trying to setup 'inn-1999-09-15_03-00' - (ibm/aix 4.2.1).

After ./configure...., make, make install (as root), INN doesn't start.

As USER news:
-------------
$ ./rc.news
Starting innd.
Scheduled start of /news_spool/inn/bin/innwatch.
------------------

I found this in news.notice:
inndstart: setreuid(25, 0) failed: Not owner

I have tried starting allover several times, all ending up the same.
Why?

In /etc/passwd I have this:
root:!:0:0::/:/bin/ksh
news:!:25:25::/usr/local/news:/usr/bin/tcsh

-and in /etc/group:
system:!:0:nuucp,root
news:!:25:news

$ id
uid=25(news) gid=25(news)


/Erik
+-------------------+---------------------------------+
| UNI-C             | E-Mail: Erik.Mouritzen@uni-c.dk |
| DTU, Building 304 | Phone:  +45 3587 8889           |
| DK2800 Lyngby     | Fax:    +45 3587 8990           |
+-------------------+---------------------------------+
| Danish Computing Centre for Research and Education  |
+-----------------------------------------------------+

Re: INN 2.3, inndstart problem
#39941
Author: Erik Mouritzen
Date: Fri, 17 Sep 1999 00:00
35 lines
1949 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

>> -------------
>> $ ./rc.news
>> Starting innd.
>> Scheduled start of /news_spool/inn/bin/innwatch.
>> ------------------

>> I found this in news.notice:
>> inndstart: setreuid(25, 0) failed: Not owner

> Hm.  That means that this is failing:

>     /* Now, regain privileges so that we can change system limits and bind
>        to our desired port. */
>     set_user(news_uid, news_gid, 0, 0);

> But dropping permissions worked fine.  That's very odd.  First thing to
> check:  is inndstart setuid root?

Current permission:

-r-sr-x---   1 root     news      203454 Sep 16 10:52 inndstart

/Erik Mouritzen
+-------------------+---------------------------------+
| UNI-C		    | E-Mail: Erik.Mouritzen@uni-c.dk |
| DTU, Building 304 | Phone:  +45 3587 8889           |
| DK2800 Lyngby	    | Fax:    +45 3587 8990           |
+-------------------+---------------------------------+
| Danish Computing Centre for Research and Education  |
+-----------------------------------------------------+

Re: INN 2.3, inndstart problem
#39943
Author: Russ Allbery
Date: Fri, 17 Sep 1999 00:00
19 lines
1333 bytes
Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

> Current permission:

> -r-sr-x---   1 root     news      203454 Sep 16 10:52 inndstart

That should be fine then.  Something's apparently wrong with setreuid() on
AIX 4.2, possibly, or possibly the sequencing is wrong in inndstart.  It
should be fine, though, and works on Solaris... I don't know enough about
AIX to know whether or not there are portability issues with setreuid()
that I don't understand, and I can't get the info page browser (the vendor
one) working on my AIX 4.2 machine to look up the documentation.

Anyone else have an AIX system and trying INN 2.3?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN 2.3, inndstart problem
#39954
Author: Russ Allbery
Date: Fri, 17 Sep 1999 00:00
24 lines
1180 bytes
Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

> -------------
> $ ./rc.news
> Starting innd.
> Scheduled start of /news_spool/inn/bin/innwatch.
> ------------------

> I found this in news.notice:
> inndstart: setreuid(25, 0) failed: Not owner

Hm.  That means that this is failing:

    /* Now, regain privileges so that we can change system limits and bind
       to our desired port. */
    set_user(news_uid, news_gid, 0, 0);

But dropping permissions worked fine.  That's very odd.  First thing to
check:  is inndstart setuid root?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN 2.3, inndstart problem
#40012
Author: Russ Allbery
Date: Tue, 21 Sep 1999 00:00
25 lines
1461 bytes
Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

> Isn't there a way for me to bypass the check (inndstart), so I at least
> can get innd started ?

> I really would like to test INN 2.3 with CNFS and the new overview stuff.

Comment out line 171 of innd/inndstart.c and recompile and see if that
works better.  That's the line:

    set_user(0, 0, news_uid, news_gid);

which drops permissions before reading inn.conf and doing some other
stuff.  It's not technically necessary, it's just good security practice.
Also comment out line 268:

    set_user(news_uid, news_gid, 0, 0);

That should remove any calls to setreuid(), but it should still drop
permissions correctly.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN 2.3, inndstart problem
#40013
Author: Erik Mouritzen
Date: Tue, 21 Sep 1999 00:00
35 lines
2206 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

>> Isn't there a way for me to bypass the check (inndstart), so I at least
>> can get innd started ?

>> I really would like to test INN 2.3 with CNFS and the new overview stuff.

> Comment out line 171 of innd/inndstart.c and recompile and see if that
> works better.  That's the line:

>     set_user(0, 0, news_uid, news_gid);

> which drops permissions before reading inn.conf and doing some other
> stuff.  It's not technically necessary, it's just good security practice.
> Also comment out line 268:

>     set_user(news_uid, news_gid, 0, 0);

> That should remove any calls to setreuid(), but it should still drop
> permissions correctly.

Yes, INND is starting.
Everything seems to be just fine now, THANKS!!!

/Erik
+-------------------+---------------------------------+
| UNI-C		    | E-Mail: Erik.Mouritzen@uni-c.dk |
| DTU, Building 304 | Phone:  +45 3587 8889           |
| DK2800 Lyngby	    | Fax:    +45 3587 8990           |
+-------------------+---------------------------------+
| Danish Computing Centre for Research and Education  |
+-----------------------------------------------------+

Re: INN 2.3, inndstart problem
#40016
Author: Erik Mouritzen
Date: Tue, 21 Sep 1999 00:00
31 lines
2175 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Erik Mouritzen <unilerik@green.rnd.uni-c.dk> writes:

>> Current permission:

>> -r-sr-x---   1 root     news      203454 Sep 16 10:52 inndstart

> That should be fine then.  Something's apparently wrong with setreuid() on
> AIX 4.2, possibly, or possibly the sequencing is wrong in inndstart.  It
> should be fine, though, and works on Solaris... I don't know enough about
> AIX to know whether or not there are portability issues with setreuid()
> that I don't understand, and I can't get the info page browser (the vendor
> one) working on my AIX 4.2 machine to look up the documentation.

> Anyone else have an AIX system and trying INN 2.3?

Isn't there a way for me to bypass the check (inndstart), 
so I at least can get innd started ?

I really would like to test INN 2.3 with CNFS and the new overview stuff.

/Erik
+-------------------+---------------------------------+
| UNI-C		    | E-Mail: Erik.Mouritzen@uni-c.dk |
| DTU, Building 304 | Phone:  +45 3587 8889           |
| DK2800 Lyngby	    | Fax:    +45 3587 8990           |
+-------------------+---------------------------------+
| Danish Computing Centre for Research and Education  |
+-----------------------------------------------------+

Re: INN 2.3, inndstart problem
#40073
Author: Russ Allbery
Date: Thu, 23 Sep 1999 00:00
17 lines
1353 bytes
bill davidsen <davidsen@tmr.com> writes:

> I think this is an install error, although I haven't made it so I can't
> say what it is. I've had zero problems (of this type) with 2.3 on AIX,
> and I didn't have to configure with shared libs disabled manually.
> Either they now work or they're now used in a way which doesn't offend
> AIX.

Shared libraries are disabled by default right now in INN because the
libtool in INN is currently broken, or at least sub-optimal.  I had all
sorts of trouble the last time I tried to use it.  It's on the list to fix
at some point.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN 2.3, inndstart problem
#40083
Author: bill davidsen
Date: Thu, 23 Sep 1999 00:00
29 lines
2216 bytes
In article <yl4sgthjdo.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:

| That should be fine then.  Something's apparently wrong with setreuid() on
| AIX 4.2, possibly, or possibly the sequencing is wrong in inndstart.  It
| should be fine, though, and works on Solaris... I don't know enough about
| AIX to know whether or not there are portability issues with setreuid()
| that I don't understand, and I can't get the info page browser (the vendor
| one) working on my AIX 4.2 machine to look up the documentation.
| 
| Anyone else have an AIX system and trying INN 2.3?

  Been running INN on AIX since 1996. I have a news router running that
way right now, and it runs fine, although I am now on 4.3.2 and have
only inn-2.2 on my few remaining 4.2 machines. I even have one machine
running a vastly patched 1.5.1 nightmare for special applications.

  I think this is an install error, although I haven't made it so I
can't say what it is. I've had zero problems (of this type) with 2.3 on
AIX, and I didn't have to configure with shared libs disabled manually.
Either they now work or they're now used in a way which doesn't offend
AIX.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  When taking small children to a carnival, always let them go on the
rides before eating all the junk food and candy.

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