home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.eng.gtefsd.com!emory!sol.ctr.columbia.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!sun-barr!male.EBay.Sun.COM!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!tyger!geoff
- From: geoff@tyger.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
- Newsgroups: comp.protocols.nfs
- Subject: Re: Open a fixed securety-hole
- Date: 28 Jan 1993 14:20:30 GMT
- Organization: SunSelect
- Lines: 33
- Distribution: world
- Message-ID: <1k8q3eINN3ac@seven-up.East.Sun.COM>
- References: <KAZ.93Jan28124128@haegar2.uni-paderborn.de>
- Reply-To: geoff@tyger.East.Sun.COM
- NNTP-Posting-Host: tyger.east.sun.com
-
- In article 93Jan28124128@haegar2.uni-paderborn.de, kaz@uni-paderborn.de (Kay Mueller) writes:
- ##Hi out there,
- ##
- ##We are running the rpc.pcnfsd on a server with a restricted passwd.
- ##(only those users who are in /etc/netgroup on our nisserver are allowed to
- ##log in)
- ##The old deamon (PCNFS 3.5) did not care aboutthis, and every user could do
- ##his net name *
- ##But the new pcnfsd (pcnfsd.92.11.05) checks the local /etc/passwd and returns an
- ##"Authentication Failiure" to everyone not mentioned in /etc/netgroup.
- ##
- ##How can I open this securety hole?
-
- pcnfsd doesn't check /etc/netgroup for anything. It calls getpwnam()
- to find the passwd record for the user, but then it alsways has done.
- The only new thing in the 92.11.05 daemon which might affect you is
- the check for the presence of a valid user shell in the passwd record.
- pcnfsd will use setusershell()/getusershell()/endusershell() if configured
- to do so; otherwise it insists that the last two characters are "sh".
- (A null shell field - equivalent to /bin/sh - is acceptable.)
-
- If you are enforcing restricted logins via a custom shell, and you have
- defined USE_GETUSERSHELL, you will have to make sure that your custom
- shell is included in /etc/shells. (See "man getusershell" for details.)
- Otherwise, you can hack the code in pcnfsd_misc.c to cope with
- your special setup.
-
- ---
- Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
- --------------------------------------------------+-------------------
- "What if they made the whole thing up? | "The Great Lie" by
- Four guys, two thousand years ago, over wine..." | The Tear Garden
-
-