🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
5 messages
5 total messages Started by Matt Heffron Thu, 12 Nov 1992 21:16
Help! nnmaster difficulties on HP720 HPUX 8.07
#3374
Author: Matt Heffron
Date: Thu, 12 Nov 1992 21:16
39 lines
2211 bytes
I've been using nn for a long time now on Apollo workstations, and
now I have to get it running on an HP 720 running HP-UX 8.07.
Here's what I have already done.

1. copied my nn source tree from the Apollo system to the HP720.

2. compiled nn with gcc (2.3.1), (I don't have the HP developers kit) having
   configured nn with m-hp9000.h and a modified s-hpux7-0.h
    The modifications were:
    #undef USE_TERMINFO
    #define USE_TERMCAP
    comment out the #define EXTRA_LIB -lBSD

   Everything seems to build OK
   (I also built the mini-inews in inews/ )

3. I then ran ./inst (as SU) and installed everything.

4. I tried to INIT the database but instead I get the error:

    /usr/local/lib/nn/nnmaster invoked with wrong user privileges

5. I then ran the nnmaster from the source directory (i.e. not SUID/SGID)
   to init the database, and it worked!

6. I cannot run the SUID/SGID nnmaster to actually collect the database info;
   same error as above.

Does anyone know of the appropriate incantations to get this working on the
HP 720 under HP-UX??

Thanks in advance.

--
Matt Heffron                      heffron@falstaff.css.beckman.com
Beckman Instruments, Inc.         voice: (714) 961-3128
2500 N. Harbor Blvd. MS X-11, Fullerton, CA 92634-3100
I don't speak for Beckman Instruments unless they say so.
Re: Help! nnmaster difficulties on HP720 HPUX 8.07
#3380
Author: Michel Pollet
Date: Fri, 13 Nov 1992 11:24
23 lines
1595 bytes
heffron@falstaff.css.beckman.com (Matt Heffron) writes:
>I've been using nn for a long time now on Apollo workstations, and
>now I have to get it running on an HP 720 running HP-UX 8.07.
>Here's what I have already done.

>4. I tried to INIT the database but instead I get the error:

>    /usr/local/lib/nn/nnmaster invoked with wrong user privileges

	You have to put the SUID on the nnmaster, but not for ROOT !!!
	I had the same problem some time ago. nn master must be like that:

/usr/local/lib/nn:
-rwsr-s---   1 news     news       96256 Nov  4 11:34 nnmaster

	It will be OK after that.

Michel
-- 
- Michel Pollet: michel@segin.com (Office),michel@trantor.fr.mugnet.org (Home)-
-- Your conscience never stops you from doing anything.  It just stops you   --
-- from enjoying it.                                                         --
Re: Help! nnmaster difficulties on HP720 HP
#3391
Author: eric adams
Date: Mon, 16 Nov 1992 16:49
11 lines
1226 bytes
I am having the same problem as above with my Sun 4, I tried the proposed fix, changing
the permissions on the file but had no further suceess.

thanks in advance
Eric

---
Eric.Adams@dseg.ti.com (work, sun-mail) - Texas Instruments - MSGID YFAN
EricAdams@uiuc.edu  (school, Internet mail)
ea47916@sumter.cso.uiuc.edu (school, NeXT mail) 
Computer Engineering / THE University of Illinois - Champaign, Urbana
Re: Help! nnmaster difficulties on HP720 HP
#3394
Author: eric adams
Date: Tue, 17 Nov 1992 14:14
16 lines
1402 bytes
eric@medusa.dseg.ti.com (eric adams) writes:

>I am having the same problem as above with my Sun 4, I tried the proposed fix, changing
>the permissions on the file but had no further suceess.

I figured out my problem.  I wanted to use a symbolic link from /usr/spool/nn
to /usr2/spool/nn and aparently nnmaster doesn't like that.  I changed the
path in the Makefile to /usr2/spool/nn and it works fine.

Eric

-- 
Eric.Adams@dseg.ti.com (work, sun-mail) - Texas Instruments - MSGID YFAN
EricAdams@uiuc.edu  (school, Internet mail)
ea47916@sumter.cso.uiuc.edu (school, NeXT mail) 
Computer Engineering / THE University of Illinois - Champaign, Urbana
Re: Help! nnmaster difficulties on HP720 HPUX 8.07
#3413
Author: Matt Heffron
Date: Fri, 20 Nov 1992 19:30
42 lines
2518 bytes
In <michel.721653862@cst02> michel@cst02.segin.com (Michel Pollet) writes:

>heffron@falstaff.css.beckman.com (Matt Heffron) writes:
>>I've been using nn for a long time now on Apollo workstations, and
>>now I have to get it running on an HP 720 running HP-UX 8.07.
>>Here's what I have already done.

>>4. I tried to INIT the database but instead I get the error:

>>    /usr/local/lib/nn/nnmaster invoked with wrong user privileges

>	You have to put the SUID on the nnmaster, but not for ROOT !!!
>	I had the same problem some time ago. nn master must be like that:

>/usr/local/lib/nn:
>-rwsr-s---   1 news     news       96256 Nov  4 11:34 nnmaster

>	It will be OK after that.

Close, but that wasn't it. :-)  The problem was that the UID/GID on the
/usr/spool/nn DIRECTORY wasn't news/news.  So it wasn't writable by nnmaster
when SUID to news.  But it was by root (the directory was root/sys).  Thus,
running the non-SUID nnmaster worked, BUT it then created the rest of the
/usr/spool/nn/* files and sub-dirs as root/sys instead of news/news.
Changing the /usr/spool/nn/* tree to news/news fixed the problem.!!!

Thanks to all for the assistance.

Matt

>Michel
>-- 
>- Michel Pollet: michel@segin.com (Office),michel@trantor.fr.mugnet.org (Home)-
>-- Your conscience never stops you from doing anything.  It just stops you   --
>-- from enjoying it.                                                         --

--
Matt Heffron                      heffron@falstaff.css.beckman.com
Beckman Instruments, Inc.         voice: (714) 961-3128
2500 N. Harbor Blvd. MS X-11, Fullerton, CA 92634-3100
I don't speak for Beckman Instruments unless they say so.
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