🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47534

Re: Most dependable version to use

#47534
From: Russ Allbery
Date: Fri, 21 Jul 2000 00:00
34 lines
1955 bytes
Bruce D Meyer <bmeyer@rocsoft.net> writes:

> When I try to start INN as news, It won't go.

Log in as user news and just run rc.news without any su or anything.  That
should work, and it's the most reliable.  If that doesn't work, I'd be
very curious to see the exact error message.  I'm betting that if that's
not working, the setuid bit on inndstart and possibly startinnfeed has
been cleared somehow.

> I realize this means it is su'ing to news and running, but it always
> says something similar to permission denied, (and always has since day
> one) But it goes and runs news anyway.
> error is:
> /root/.bashrc: permission denied

You've got extra gunk in your environment.  Something like:

  su - news -c "/path/to/rc.news"

may work better.

> I assume it means that once it su's to news, it can't run the .bashrc
> file as it deosn't have high enough permissions. (as news) I don't
> understand that as it has a .bashrc file under /root (belongs to root)
> and one under /home/news that belongs to news.

It probably looks in $HOME.  su without the extra - doesn't clear out
things like $HOME.

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

Technical Details
Message-ID: <ylwvifte4p.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <8ku9bn$57k$1@nnrp1.deja.com> <8l4m0d$oe2$1@newssvr05-en0.news.prodigy.com> <8l9d3v$289$1@news.rocsoft.net>

Show Full Headers
Complete Article Headers
Message-ID: <ylwvifte4p.fsf@windlord.stanford.edu>
Subject: Re: Most dependable version to use
Date: Fri, 21 Jul 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <8ku9bn$57k$1@nnrp1.deja.com> <8l4m0d$oe2$1@newssvr05-en0.news.prodigy.com> <8l9d3v$289$1@news.rocsoft.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 649245941
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: news.software.nntp