🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #779

GNU Finger 1.35 .fingerrc problem with restricted shell

#779
From: Erez "HWank1" Zadok
Date: Thu, 10 Sep 1992 03:04
22 lines
1375 bytes
Our serverhost is one which some users are not allowed to login.  Those
users are allowed to login to all other hosts in our domain.  We do this by
setting up NIS netgroups.  On the restricted host we have at the end of
/etc/passwd:

	+::0:0:::/bin/restricted

which prints a message telling them they cannot login to this restricted
host, and exits.  On all of the other machines we have

	+::0:0:::

which lets those users a local login.

If such a restricted user on that host has a .fingerrc file, all they get
when anyone fingers them is the output from /bin/restricted, because that is
the shell that is exec-ed in the maybe_exec_as_user() function.  I had to
hack it so that if they have a restricted shell, but are valid uses on our
system, and have a .fingerrc file, finger will at least execute /bin/sh for
their .fingerrc.

Erez.
Technical Details
Message-ID: <9209100304.AA26937@chestnut.cs.columbia.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!chestnut.cs.columbia.edu!ezk

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!chestnut.cs.columbia.edu!ezk
From: ezk@chestnut.cs.columbia.edu (Erez "HWank1" Zadok)
Subject: GNU Finger 1.35 .fingerrc problem with restricted shell
Message-ID: <9209100304.AA26937@chestnut.cs.columbia.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 10 Sep 1992 03:04:55 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 23