Article View: comp.sys.next.sysadmin
Article #90Next 2.{1,2}: any user logging in becomes root?! [netinfo?]
From: Stuart Levy
Date: Tue, 03 Nov 1992 00:45
Date: Tue, 03 Nov 1992 00:45
40 lines
2509 bytes
2509 bytes
Three times in the last few days we've had a NeXT get into an odd state.
Any user who logs in from the console gets root's environment:
Terminal creates superuser shells, the dock is that of root, $HOME = /, etc.
rlogin from elsewhere, or "su username", gives a shell with the proper
owner, so the machine hasn't completely forgotten about that user.
Only valid account/passwords are accepted; you can't type just *anything*
and be logged in as root.
/usr/lib/NextStep/Loginwindow.app doesn't appear to have been modified.
---> Rebooting the machine restores normality. <---
We have lots of NeXTs, and most of them don't do this.
Other details:
- We use YP for user accounts (+:::::: at end of /etc/passwd).
- We have no netinfo server: each machine has only its local netinfo db.
- Killing and restarting lookupd and nibindd doesn't help.
- "nidump passwd ." looks normal.
- A toy program which calls getpwnam() gives normal results.
- No suspicious messages appear in /usr/adm/messages or /tmp/console.log.
- Loginwindow.app leaves the correct user name in /etc/utmp,
so "who" says "slevy console ..." when slevy logs in,
even though the logged-in stuff sees root's environment.
*Suspicious item:* I think that netinfo is misbehaving somehow.
When in this state, we found that, even though "nidump printcap ."
showed the correct stuff and "lpr" was willing to queue requests,
and deposit them in the local spool directory, it couldn't deliver
them to the (remote) print hosts.
Any attempt to e.g. "lpc restart printername" yielded an
error in /usr/adm/messages: "lpd[nnnn]: unknown printer: printername".
Anyone seen anything like this? Any ideas of things to look for?
Stuart Levy, Geometry Center, University of Minnesota
slevy@geom.umn.edu
Technical Details
Message-ID:
<1992Nov3.004535.25773@news2.cis.umn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!ricci.geom.umn.edu!slevyReferences:
<1992Nov1.052415.16271@afit.af.mil> <1d1pc7INN440@agate.berkeley.edu> <1992Nov2.111730.3377@prim>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!news.encore.com!csar!foxtail!sdd.hp.com!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!ricci.geom.umn.edu!slevy
From: slevy@ricci.geom.umn.edu (Stuart Levy)
Subject: Next 2.{1,2}: any user logging in becomes root?! [netinfo?]
Message-ID: <1992Nov3.004535.25773@news2.cis.umn.edu>
Sender: news@news2.cis.umn.edu (Usenet News Administration)
Nntp-Posting-Host: ricci.geom.umn.edu
Organization: Geometry Center, University of Minnesota
References: <1992Nov1.052415.16271@afit.af.mil> <1d1pc7INN440@agate.berkeley.edu> <1992Nov2.111730.3377@prim>
Date: Tue, 3 Nov 1992 00:45:35 GMT
Lines: 41