From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96472737130568.tru64-unix-managers.marc@archive.invalid> From: "Paul N. Youngblood" Date: Thu, 27 Jul 2000 19:49:31 +0000 To: tru64-unix-managers Subject: Suggestions for removing /etc/passwd entries X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96472737130568 Hello System Admins, I'm running Tru64 v4.0d and Enhanced (C2) Security. It's time to clean up my user base (remove old, inactive accounts). My /etc/passwd file has over 9000 entries. I want to delete over 5000 specific users from that file using some sort of automation. I don't want to RETIRE the users, I actually want to remove them from /etc/passwd. I know how to do the appropriate "edauth -r USERNAME" stuff, etc, but I could really use some suggestions on a "safe" way to operate on this password file. What do you think about doing the following (Would this work and be reasonably safe)? ... Boot to single-user mode, and run a script which makes use of something like sed to strip out the "bad" guys from /etc/passwd. Will doing this without vipw cause problems? I'm looking for a way other than using vipw and deleting all 5000+ accounts manually. I'll certainly SUMMARIZE. Thanks for you attention. Paul Youngblood