We don't bite newbies here... much | |
PerlMonks |
Re: Password file and NIS check?by krisahoch (Deacon) |
on Sep 09, 2002 at 18:09 UTC ( [id://196374]=note: print w/replies, xml ) | Need Help?? |
Anono-monk, What is your criteria for skipping an entry? You have root, and johnny marked as skip, but you didnt give a reason that it should be skipped. Otherwise, here is a theoretical solution First, open your /etc/passwd file, and read it to an array
Now that that is done, get each entry except for root, and compare it to the NIS one
Now write the final thing out to a file
This is all theory by the way, but I think it is a good start (I did somthing similiar several months ago, and this methodology worked. HTH - Kristofer
In Section
Seekers of Perl Wisdom
|
|