[comp.bugs.sys5] Re^2: ulimit

maart@cs.vu.nl (Maarten Litmaath) (04/25/89)

jfh@rpp386.Dallas.TX.US (John F. Haugh II) writes:
\>	% ls -l /etc/passwd*
\>	-rw-r--r--  1 root            0 Apr  3 10:44 /etc/passwd
\>	-rw-r--r--  1 root          439 Apr  3 10:40 /etc/passwd.old
\>	% su
\>	password: xxxxxxx

\How'd you do that?  In the absence of a password file entry for root
\will su _really_ let you in?  [ The answer in SVr[12?] is NO ]

Think 1 step further:

	% ls -l /etc/passwd
	-rw-r--r--  1 root           97 Apr  3 23:59 /etc/passwd

This passwd file probably contains an incomplete line, and we all know how
getpwnam() and friends (used to) treat such lines, don't we?
Remember the "Comments in /etc/passwd" discussion?
-- 
 "If it isn't aesthetically pleasing, |Maarten Litmaath @ VU Amsterdam:
  it's probably wrong." (jim@bilpin). |maart@cs.vu.nl, mcvax!botter!maart