Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: jester@expert.cc.purdue.edu (Jester)
Subject: Digital Unix & Ultrix default unknown userids to zero
Date: 1996/04/17	[thread overview]
Message-ID: <4l2ntt$47h@mozo.cc.purdue.edu> (raw)

I was setting up a MicroVAX 3100 with Utrix 4.4 yesterday to run as a
print server and discovered an alarming fact. I was using a self written
script to pop up an dxterm onto my personal HP Xterm from my userid of chriscj.

#!/bin/ksh
xhost +h8u4
(remsh h8u4 /usr/bin/X11/dxterm -d $DISPLAY -setup 
/nfs/h8r2/users/chriscj/dx/h8u4 -ls &)
sleep 15
xhost -h8u4

When the dxterm popped up, instead of being logged in as chriscj, I was root!
In fact, I was in my usual home directory, all the envirnment variables
were correctly set, except for LOGNAME which was root. After a short
period of examination I found the problem. 

In setting up the chriscj account, I had accidently left the + off of a
NIS mapped login.

chriscj:::::/nfs/h8r2/users/chriscj:/bin/ksh

My .rhosts file that was in /nfs/h8r2/users/chriscj allowed me to login
to the account without a password, but because I had no valid UID/GID
pair that NIS could map too, it defaulted to 0:0.

The error was easy to fix and I simply addded a + to first character of
the login in the /etc/passwd file, and the problem was resolved. However,
the problem was serious enough, and easy enough to break root that I
thought I ought to bring it to the attention of system administrators
who run Digital Unix (3.2C & 3.2D) where I tested the bug as well, and
Ultrix 4.4 where I originally discovered the bug.

One would think that the default UID/GID pair would default to
65534:65534 which is the Digital default to nobody, and deny the
login, but it doesn't appear to be the case.

Chris
chriscj@cat.com
-- 
PGP PUBLIC KEY available upon request 
URL: http://www.synet.net/sonic-boom/
Sonic-Boom - The Net Industrial/EBM/Goth/CyberCulture Music Review Zine
"I've been preaching down on Avenue C, getting down with the clowns!" - Chemlab



             reply	other threads:[~1996-04-17  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-17  4:00 Jester [this message]
1996-04-17  4:00 ` Digital Unix & Ultrix default unknown userids to zero Uwe Leinberger GSI Darmstadt
1996-04-19  4:00 ` Fidelio
  -- strict thread matches above, loose matches on Subject: below --
1996-04-18  4:00 Jester
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox