The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
only root can login through X window hai_jab UNIX Desktop for Dummies Questions & Answers 0 08-12-2007 03:29 AM
ioctl() fails to get window size from console login diganta SUN Solaris 2 12-24-2004 06:06 AM
window 2000 professional not pinging my window 98 system. kayode Windows & DOS: Issues & Discussions 10 11-13-2003 12:12 AM
unix window bb00y UNIX for Dummies Questions & Answers 12 10-09-2002 07:25 PM
UNIX & WINDOW Norman N IP Networking 1 01-29-2001 08:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2008
Registered User
 

Join Date: Oct 2008
Posts: 1
Question Unix Id from Window Login ID

Hello All,

My Problem is -> How can we get UNIX id from open mail authentication (Windows ID) in UNIX.

In following command we are using domain name, which may change in your reference.

As, if we use following command.
ypcat passwd | grep rohitp | cut -d: -f5 | cut -d, -f1
=> we get Windows Login ID of rohitp
Rohit Pandey

NOTE : "passwd" is domain name

But if we reverse this
ypcat passwd | grep "Rohit Pandey" | cut -d: -f 1

=> we get multiple UNIX id
flashweb
sramweb
ftmtrn21
nvmioweb
ftmweb
rohitp
ndlfweb
smtweb
wits
tcdweb
nvmpmweb
eclweb
nvmweb
Nvmsiweb


Reason behind multiple UNIX ID is, there may be multiple UNIX ID, whose owner is Rohit Pandey. But there may be specific ID which ownership only to Rohit Pandey. As in above example, ownership of nvmweb ID to multiple user but rohitp only belong to Rohit Pandey


So how i get this rohitp from this list or using other set of command. don't want to use pattern matching kind of command beacuse we don't have any idea about Windows Login Name n UNIX ID .


Regards
Rohit
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0