From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,349923eeb1e731ba,start X-Google-Attributes: gid10952f,public X-Google-Thread: f678f,349923eeb1e731ba,start X-Google-Attributes: gidf678f,public X-Google-Thread: 10b612,349923eeb1e731ba,start X-Google-Attributes: gid10b612,public From: jester@expert.cc.purdue.edu (Jester) Subject: Digital Unix & Ultrix default unknown userids to zero Date: 1996/04/17 Message-ID: <4l2ntt$47h@mozo.cc.purdue.edu>#1/1 X-Deja-AN: 147965219 organization: Purdue University Computing Center newsgroups: comp.security.unix,comp.unix.ultrix,comp.unix.osf.misc 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