🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50156

Re: If only the wheel group can su to root

#50156
From: Rebecca Ore
Date: Fri, 26 Jan 2001 03:55
31 lines
2523 bytes
Jeremy <jeremy@exit109.com> writes:

> Rebecca Ore  <rebecca@ogoense.net> wrote:
> 
> > Okay, that *was* how the news user was set up in FreeBSD originally,
> > so I would have to su to root, then su to the news user.  What I do
> > now is log in remotely as rebecca.  Then I su to news, not root.
> 
> I su to news via root, with a shell alias not entirely unlike:
> 
>   alias news="su -m root -c 'su -m news -c \"env ZDOTDIR=$HOME zsh\"'"
> 
> This gets me a shell as news, but my own shell startup files and such.
> That's the FreeBSD version; its much shorter on Solaris, where it works
> without the env nonsense.  FreeBSD's su didn't seem to preserve that.

I gave news a .bashrc of its own with the path and manpath set to use
the news stuff.  Root doesn't have that set (nor does it use bash as a
shell in NetBSD).  Is there a problem with this?

My next project seems to be setting up limits and authentications for
my pyrophore shell users (the whole handful of them).  Then I have to
set up something for people who just have news accounts and who are
logging in as news users from their own dialups, who'll just be
posting to local, restricted, private groups, maybe also to net.* if
they're willing to be good about it.

-- 
Rebecca Ore
http://www.ogoense.net/rebecca
Technical Details
Message-ID: <m3vgr3ezm3.fsf@pyrophore.ogoense.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!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!news-xfer.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail
References: <m37l3mip9i.fsf@pyrophore.ogoense.net> <m3d7ddbef2.fsf@pyrophore.ogoense.net> <980370575.595912@news.netscum.dk> <m366j4yyf3.fsf@pyrophore.ogoense.net> <980407279.203248@news.netscum.dk>

Show Full Headers
Complete Article Headers
Message-ID: <m3vgr3ezm3.fsf@pyrophore.ogoense.net>
Subject: Re: If only the wheel group can su to root
Date: Fri, 26 Jan 2001 03:55:32 GMT
From: Rebecca Ore <rebecca@ogoense.net>
References: <m37l3mip9i.fsf@pyrophore.ogoense.net> <m3d7ddbef2.fsf@pyrophore.ogoense.net> <980370575.595912@news.netscum.dk> <m366j4yyf3.fsf@pyrophore.ogoense.net> <980407279.203248@news.netscum.dk>
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!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!news-xfer.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail
Mail-Copies-To: never
Sender: rebecca@pyrophore.ogoense.net
Newsgroups: news.software.nntp
Organization: Rebecca's
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 207.8.130.194
X-Complaints-To: Abuse Role <abuse@netaxs.com>
X-Trace: monger.newsread.com 980481332 207.8.130.194 (Thu, 25 Jan 2001 22:55:32 EST)
NNTP-Posting-Date: Thu, 25 Jan 2001 22:55:32 EST