🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Matthias Wach Mon, 15 Mar 2004 22:09
INN and core dump
#68634
Author: Matthias Wach
Date: Mon, 15 Mar 2004 22:09
52 lines
2412 bytes
i do the following:

1. rename innd to innd-real
2. edit a new "innd" and put the following in it:

#! /bin/bash
# allow core dumps
ulimit -c 100000
# save any output
exec > /usr/local/news/tmp/innd.log 2>&1
# who are we running as, anyway?
id
# show exported environment
export
# start innd (don't forget the arguments, or it will complain)
exec strace -o /usr/local/news/tmp/innd.strace -f -F
/usr/local/news/bin/innd-real "$@"

3. change permission of the new "innd" to 750
4. login as su
5. command: su news -c /usr/local/news/bin/rc.news

this is the result:

bash-2.05$ su
Password:
[root@salimbo news]# su news -c '/usr/local/news/bin/rc.news'
Starting innd.
--> hangs, no prompt comes

news.err:

Mar 15 15:56:04 salimbo innfeed[1093]: can't seteuid(0): Operation not
permitted
Mar 15 15:56:05 salimbo innd-real: innfeed! exit 1 elapsed 0 pid 1093

this two lines comes a round 300 times.

any suggestions ?







................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: INN and core dump
#68632
Author: Matthias Wach
Date: Mon, 15 Mar 2004 22:21
13 lines
1553 bytes
curious, with all the error messages the server is running and feeding...
now since nearly 20 minutes...





................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: INN and core dump
#68635
Author: Russ Allbery
Date: Mon, 15 Mar 2004 22:25
17 lines
1697 bytes
Matthias Wach <webmaster@salimbo.com> writes:

> news.err:

> Mar 15 15:56:04 salimbo innfeed[1093]: can't seteuid(0): Operation not
> permitted
> Mar 15 15:56:05 salimbo innd-real: innfeed! exit 1 elapsed 0 pid 1093

Either startinnfeed must be setuid root or you need to run innfeed
directly in newsfeeds.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN and core dump
#68637
Author: Matthias Wach
Date: Mon, 15 Mar 2004 22:40
35 lines
2286 bytes
if you mean with setuid root that the user is root, it is so.

-r-sr-x---    1 root     news       140786 Mar 14 14:13 startinnfeed

or does mean another thing ?

"Russ Allbery" <rra@stanford.edu> schrieb im Newsbeitrag
news:87llm1agtv.fsf@windlord.stanford.edu...
> Matthias Wach <webmaster@salimbo.com> writes:
>
> > news.err:
>
> > Mar 15 15:56:04 salimbo innfeed[1093]: can't seteuid(0): Operation not
> > permitted
> > Mar 15 15:56:05 salimbo innd-real: innfeed! exit 1 elapsed 0 pid 1093
>
> Either startinnfeed must be setuid root or you need to run innfeed
> directly in newsfeeds.
>
> -- 
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
>
>           Please post questions rather than mailing me directly.
>      <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.





................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: INN and core dump
#68638
Author: Russ Allbery
Date: Mon, 15 Mar 2004 22:44
16 lines
1764 bytes
Matthias Wach <webmaster@salimbo.com> writes:

> if you mean with setuid root that the user is root, it is so.
> -r-sr-x---    1 root     news       140786 Mar 14 14:13 startinnfeed

> or does mean another thing ?

No, that's it.  Hm.  That's a very odd error message to be receiving,
then.

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

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN and core dump
#68639
Author: Matthias Wach
Date: Mon, 15 Mar 2004 23:48
32 lines
2384 bytes
yes, right. i have now changed it back to the normal innd.
now works without error...
but the question ist how many time....

"Russ Allbery" <rra@stanford.edu> schrieb im Newsbeitrag
news:87hdwpafx7.fsf@windlord.stanford.edu...
> Matthias Wach <webmaster@salimbo.com> writes:
>
> > if you mean with setuid root that the user is root, it is so.
> > -r-sr-x---    1 root     news       140786 Mar 14 14:13 startinnfeed
>
> > or does mean another thing ?
>
> No, that's it.  Hm.  That's a very odd error message to be receiving,
> then.
>
> -- 
> Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>
>
>           Please post questions rather than mailing me directly.
>      <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.





................................................................
       Posted via TITANnews - Uncensored Newsgroups Access
             >>>> at http://www.TitanNews.com <<<<
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Re: INN and core dump
#68640
Author: Matthias Wach
Date: Tue, 16 Mar 2004 09:33
42 lines
2810 bytes
shit. INN crashes periodically.
i need to enabled the core dump...
would be glad if anyone have a hint.


"Matthias Wach" <webmaster@salimbo.com> schrieb im Newsbeitrag
news:4056409f$0$32022$a8266bb1@news.titannews.com...
> yes, right. i have now changed it back to the normal innd.
> now works without error...
> but the question ist how many time....
>
> "Russ Allbery" <rra@stanford.edu> schrieb im Newsbeitrag
> news:87hdwpafx7.fsf@windlord.stanford.edu...
> > Matthias Wach <webmaster@salimbo.com> writes:
> >
> > > if you mean with setuid root that the user is root, it is so.
> > > -r-sr-x---    1 root     news       140786 Mar 14 14:13 startinnfeed
> >
> > > or does mean another thing ?
> >
> > No, that's it.  Hm.  That's a very odd error message to be receiving,
> > then.
> >
> > -- 
> > Russ Allbery (rra@stanford.edu)
<http://www.eyrie.org/~eagle/>
> >
> >           Please post questions rather than mailing me directly.
> >      <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
>
>
>
>
>
> ................................................................
>        Posted via TITANnews - Uncensored Newsgroups Access
>              >>>> at http://www.TitanNews.com <<<<
> -=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-
>


Re: INN and core dump
#68643
Author: Matthias Wach
Date: Tue, 16 Mar 2004 13:14
84 lines
4364 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C40B60.F72130D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

another curious thing:

bash-2.05$ su
Password:=20
[root@salimbo news]# su news -c /usr/local/news/bin/rc.news
Starting innd.
Scheduled start of /usr/local/news/bin/innwatch.
[root@salimbo news]# Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
/proc /proc proc defaults
In the meantime, mount /proc /proc -t proc
/usr/local/news/bin/innwatch: [: : integer expression expected
/usr/local/news/bin/innwatch: [: : integer expression expected
/usr/local/news/bin/innwatch: [: : integer expression expected
/usr/local/news/bin/innwatch: [: : integer expression expected

This error comes after approx. 1 minute.

Maybe this have something to do with my no working core dump.

in my /etc/fstab is:

none     /proc     proc      defaults      0      0

seems correct, or ?

Thanks a lot for help !!!
------=_NextPart_000_0008_01C40B60.F72130D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>another curious thing:<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bash-2.05$ su<BR>Password: =
<BR>[root@salimbo=20
news]#&nbsp;su news -c /usr/local/news/bin/rc.news<BR>Starting=20
innd.<BR>Scheduled start of =
/usr/local/news/bin/innwatch.<BR>[root@salimbo=20
news]# Error: /proc must be mounted<BR>To mount /proc at boot you need =
an=20
/etc/fstab line like:<BR>/proc /proc proc defaults<BR>In the meantime, =
mount=20
/proc /proc -t proc<BR>/usr/local/news/bin/innwatch: [: : integer =
expression=20
expected<BR>/usr/local/news/bin/innwatch: [: : integer expression=20
expected<BR>/usr/local/news/bin/innwatch: [: : integer expression=20
expected<BR>/usr/local/news/bin/innwatch: [: : integer expression=20
expected<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This error comes after approx. 1=20
minute.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Maybe this have something to do with my =
no working=20
core dump.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>in my /etc/fstab is:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>none&nbsp;&nbsp;&nbsp;&nbsp;=20
/proc&nbsp;&nbsp;&nbsp;&nbsp; proc &nbsp;&nbsp;&nbsp;&nbsp; defaults=20
&nbsp;&nbsp;&nbsp;&nbsp; 0 &nbsp;&nbsp;&nbsp;&nbsp; 0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>seems correct, or ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot for help=20
!!!</DIV></FONT></BODY></HTML>

------=_NextPart_000_0008_01C40B60.F72130D0--

Re: INN and core dump
#68648
Author: Remco Blaakmeer
Date: Tue, 16 Mar 2004 18:13
17 lines
1444 bytes
"Matthias Wach" <webmaster@salimbo.com> wrote in
news:405630b0$0$31985$a8266bb1@news.titannews.com: 

> if you mean with setuid root that the user is root, it is so.
> 
> -r-sr-x---    1 root     news       140786 Mar 14 14:13 startinnfeed
> 
> or does mean another thing ?

"setuid" means that you see -r-sr-x--- instead of -r-xr-x---. The setuid 
bit means this program will run as its owner instead of the user starting 
it. So, startinnfeed will always run as root. This is needed for things 
like binding to low port numbers. You can set these permissions with "chmod 
4550", or you can alter only the setuid bit with "chmod u+s".

Remco
Re: INN and core dump
#68659
Author: Jeffrey M. Vinocur
Date: Tue, 16 Mar 2004 21:52
23 lines
1701 bytes
In article <c36udk$3ko$00$1@news.t-online.com>,
Matthias Wach <webmaster@salimbo.com> wrote:
>
>in my /etc/fstab is:
>
>none     /proc     proc      defaults      0      0
>
>seems correct, or ?

I think you're going to need to find somewhere to ask basic linux
questions; we're not really familiar with the intricacies of your
operating system and are going to have trouble helping you in
detail.

At least, I am.  I don't mean to forbid other people from
helping, I'm just generalizing from past experience as to what's
likely to happen.


-- 
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