🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2415

Re: nn-restricted-mode available (for BBS usage) ?

#2415
From: Josef Wolf
Date: Sun, 02 Feb 1992 02:28
49 lines
2530 bytes
In <1992Jan27.214331.4172@aw2.fsl.ca.boeing.com> vds7789@aw2.fsl.ca.boeing.com (Vincent D. Skahan) writes:
] root@chamber.in-berlin.de (Patrick Wendt) writes:
] >Is there any possible way to setup 'nn' as restricted as I'd
] >need it for a BBS-environment ? - 'nn' would be a real nice
] >newsreader even for local boards on a BBS. - As BBS-users
] >mustn't have the minimum of a chance to get a shell, overwrite
] >system(-bbs) files etc. there must be a real secure setup for
] >'nn' ...

I've done this some time ago. I'm sorry that I can't send you the diffs,
because there is too much hacked around in this version to make nn6.4
run with OSK. But as a hint, there are (mainly) 5 Things to do:

1 set shell-restrictions in the setup file
2 set and lock _every_ variable which is used to execute commands
3 modify the source to avoid display/save/print files above the
  home-directory if shell-restrictions is set (mainly in save.c)
4 modify the source to avoid changing directories if shell-restrictions
  is set
5 modify the source to avoid showing the contents of locked variables

You shold lock at least following variables:
printer
bug-report-address
decode-header-file
unshar-header-file
backup-folder-path
backup-suffix
pager
mail
mailer
folder
newsrc
editor
mail-record
news-record
record
patch-command
inews
spell-checker

] anyway, you'd have to first get an editor with a no-shell-access
] configuration (say, bbstevie, which is the Stevie vi clone with
                      ^^^^^^^^
Where can I get this one?
-- 
|   Josef Wolf,  Germersheim,  Germany    aka    sepp@ppcger.ppc.sub.org   |
| +49 7274 8048  USR HST-DS  300-14400 V32/V32bis V42/V42bis/HST 24 Hours  |
| ...und wieviel brave Deutsche haben wieder nichts geschnallt... (Marius) |
Technical Details
Message-ID: <LQsRyF@ppcger.ppc.sub.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!ppcnet!ppcger!Sepp
References: <1992Jan24.231203.24210@chamber.in-berlin.de> <1992Jan27.214331.4172@aw2.fsl.ca.boeing.com>

Show Full Headers
Complete Article Headers
Message-ID: <LQsRyF@ppcger.ppc.sub.org>
Subject: Re: nn-restricted-mode available (for BBS usage) ?
Date: Sun, 02 Feb 1992 02:28:04 +0000
From: Sepp@ppcger.ppc.sub.org (Josef Wolf)
References: <1992Jan24.231203.24210@chamber.in-berlin.de> <1992Jan27.214331.4172@aw2.fsl.ca.boeing.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!ppcnet!ppcger!Sepp
Newsgroups: news.software.nn
Distribution: world
Organization: PPC Germersheim, Germany
Lines: 49