Searching username in a password file
How do i search for a username within a shadow password file? Many thanks in advance :-)
|
Not sure I follow, a quick glance over my /etc/shadow file definitely shows, in plain text, the usernames...
Cool |
Thanks for replying MasterC. Well the shadow file i'm dealing with has lots and lots of usernames. Ofcourse, I can go through each one of them and try to find the specific username but I figured that would be too much of a hassle. So I was wondering if there was any shortcut? I tried googling but nothing helpful came up.
|
Open up the file, in say, vim and type:
/username This will search that file for 'username'. HTH Cool |
Thanks again MasterC. Would do :-)
|
Glad I could help ;)
Cool |
All times are GMT -5. The time now is 11:46 AM. |