Home » Infrastructure » Unix » Unix Id from Window Login ID (UNIX)
Unix Id from Window Login ID [message #353480] Tue, 14 October 2008 00:48 Go to next message
pandey.rohit
Messages: 1
Registered: October 2008
Location: India
Junior Member

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



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
Re: Unix Id from Window Login ID [message #353483 is a reply to message #353480] Tue, 14 October 2008 00:50 Go to previous message
Michel Cadot
Messages: 68711
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
This question bears no connection with Oracle.
Please find a more appropriate forum.
The topic is locked.

Regards
Michel
Previous Topic: root.sh and rootinst.sh execution in oracle installation-why required
Next Topic: Script for Sending mail
Goto Forum:
  


Current Time: Sun Nov 10 05:10:04 CST 2024