zero length /etc/passwd (was Re: ulimit)

John Plocher plocher%sally at Sun.COM
Thu Apr 27 13:22:13 AEST 1989


+---- In <WJC.89Apr22100003 at ho5cad.ho5cad.ATT.COM> Bill Carpenter writes:
| +---- In <100455 at sun.Eng.Sun.COM> John Plocher writes:
| | Kids, don't do this at home.
| |[shows bug that truncates /etc/passwd]
| | 	% su					<<< This will fail   oops  <<<
| | 	password: xxxxxxx
| | 	# cp /etc/passwd.old /etc/passwd
| +----
| No, kidding, "don't do this"!!  I was once the last user on a machine
+----

Wow!  You wouldn't believe how many people caught that one!  That's what
happens when I try to condense the interactions of two terminals into one
without really thinking ;-(  Now back to that full mailbox...

   -John Plocher



More information about the Comp.bugs.sys5 mailing list