Xref: utzoo comp.unix.questions:9598 comp.bugs.sys5:606 Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!purdue!bu-cs!mirror!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.unix.questions,comp.bugs.sys5 Subject: Re: Dangers of vi & passwd (Was Re: SVR3 passwd changes mode of passwd file) Message-ID: <268@lakart.UUCP> Date: 4 Oct 88 16:33:25 GMT References: <426@fciva.FRANKLIN.COM> Organization: Lakart Corporation - The ultimate in broadcast automation Lines: 17 dag@fciva.FRANKLIN.COM (Daniel A. Graifer) sez: ] This is a summary of the responses I received when I asked "why shouldn't ] I use vi to edit /etc/passwd?" ] ] The reason is simple: I load up the file with vi. Someone else issues a ] passwd command to change their passwd. I save my changes. Poor someone ] else looses out. I guess I should have thought of that! :-) Thanks ] much to all of you who mailed or posted responses. ] ] -Dan This is what vipw was invented for. -- dg@lakart.UUCP - David Goodenough +---+ | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | +---+