* Digital Unix & Ultrix default unknown userids to zero
@ 1996-04-17 4:00 Jester
1996-04-17 4:00 ` Uwe Leinberger GSI Darmstadt
1996-04-19 4:00 ` Fidelio
0 siblings, 2 replies; 4+ messages in thread
From: Jester @ 1996-04-17 4:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital Unix & Ultrix default unknown userids to zero
1996-04-17 4:00 Digital Unix & Ultrix default unknown userids to zero Jester
@ 1996-04-17 4:00 ` Uwe Leinberger GSI Darmstadt
1996-04-19 4:00 ` Fidelio
1 sibling, 0 replies; 4+ messages in thread
From: Uwe Leinberger GSI Darmstadt @ 1996-04-17 4:00 UTC (permalink / raw)
In article <4l2ntt$47h@mozo.cc.purdue.edu>, jester@expert.cc.purdue.edu (Jester) writes:
>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
>
I guess you were fooled:
If there is no home dir for your account, then root's homedir is used.
Did you do a whoami or ps?
Uwe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital Unix & Ultrix default unknown userids to zero
@ 1996-04-18 4:00 Jester
0 siblings, 0 replies; 4+ messages in thread
From: Jester @ 1996-04-18 4:00 UTC (permalink / raw)
Uwe Leinberger GSI Darmstadt <leinberger@axp621.gsi.de> wrote:
>I guess you were fooled:
>If there is no home dir for your account, then root's homedir is used.
>Did you do a whoami or ps?
a whoami yielded me as root, a ps yielded me as root, with the homedir
of the chriscj account. a printenv yielded my USER as chriscj but
my LOGNAME as root. I could install software and reboot the machine
from the spawned login shell, so I was indeed root.
Chris
--
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'm just a hard working corporate slave!" -Snog
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Digital Unix & Ultrix default unknown userids to zero
1996-04-17 4:00 Digital Unix & Ultrix default unknown userids to zero Jester
1996-04-17 4:00 ` Uwe Leinberger GSI Darmstadt
@ 1996-04-19 4:00 ` Fidelio
1 sibling, 0 replies; 4+ messages in thread
From: Fidelio @ 1996-04-19 4:00 UTC (permalink / raw)
jester@expert.cc.purdue.edu (Jester) writes:
>In setting up the chriscj account, I had accidently left the + off of a
>NIS mapped login.
>chriscj:::::/nfs/h8r2/users/chriscj:/bin/ksh
>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.
Well a missing value would be 0, although I think several UNIXes refuse
something like 'toor:::::/:' as a minimal passwd entry, it needs to
be 'toor::0:0::/:' for some. The concept of the passwd file is almost
as old as UNIX, from the 70's while UID 65534 was introduced by SUN for
use by NFS/RPC in the mid 80's. Handling UID's is a much lower level
than RPC, which is a user protocol, so it would be unlikely that you want
your kernel to have any knowledge of a special case for UID 65534.
Rob
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Rob J. Nauta Linux: putting power in the wrong hands
rjn@pobox.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-04-19 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-17 4:00 Digital Unix & Ultrix default unknown userids to zero Jester
1996-04-17 4:00 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox