Friday, September 22, 2006

Finding a User With Niscat

Today, I was asked to lookup a user who left over a year ago. We maintain three different name services. The local name service is files and the organizational name service is NIS+. The third one is DNS, which is used to lookup external addresses.

How did I quickly find the user via command line?

I used the following commands:
For files: more /etc/passwd | grep -i username (if you know it or some other known string)
For NIS+: niscat passwd.org_dir | grep -i username

By the way, the user was located in the NIS+ domain. The user was deleted.

No comments: