Skip site navigation (1)Skip section navigation (2)
Date:      11 May 1997 17:21:39 +0200
From:      Wolfram Schneider <wosch@apfel.de>
To:        Gnuchev Fedor <qwe@ht.eimb.rssi.ru>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: Linux UID/GID 'Feature'
Message-ID:  <p1iwwp65918.fsf@campa.panke.de>
In-Reply-To: Gnuchev Fedor's message of Sun, 11 May 1997 13:50:57 %2B0400 (MSD)
References:  <Pine.BSF.3.95q.970511134602.168C-100000@ht.eimb.rssi.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Gnuchev Fedor <qwe@ht.eimb.rssi.ru> writes:
> > While trying to make a user entry in the /etc/passwd file unrecognized
> > so I could demonstrate the use of valid UIDs, I placed a # in front of the UID.
> > My theory was that this would make it an invalid number and cause Linux
> > to give an authentication failure.  (This worked as expect on SunOS 4.1.4)
> > But then we tried to su to that user and were rewarded by being dumped
> > to UID 0.  It didn't recognize the UID so it defaulted to 0.  Cool huh?

Never put an non-numeric character in UID field!

BTW, in FreeBSD-current lines with a leading `#' are comments, and 
are ignored. See group(5), passwd(5).

-- 
Wolfram Schneider    <wosch@apfel.de>    http://www.apfel.de/~wosch/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p1iwwp65918.fsf>