- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Finding user name through uid number
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:41 PM
05-16-2002 10:41 PM
I have the /var/src/yp/passwd file from my local NIS master server. Some of the users in my passwd file do have accounts in another remote site with a different NIS server.
I'd like to find if other users on the remote site do have the same uid as my users having the accounts locally and at the particular remote site.
Is there a utility which enables us to search for the usernames based on the uid ?
I do not know the remote NIS server name, so that's why I'm trying other alternatives.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 10:53 PM
05-16-2002 10:53 PM
Re: Finding user name through uid number
or
logins|grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 11:22 PM
05-16-2002 11:22 PM
Re: Finding user name through uid number
cat /etc/passwd | grep ":UID No:"
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 11:24 PM
05-16-2002 11:24 PM
Re: Finding user name through uid number
Thanks for the response. However, as I've mentioned in my msg, I only have the passwd file from the local NIS server, in which I can do just what you have showed.
I'd need to also access the uid of the same user at a remote site, with a different NIS server.
Please advice.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2002 11:47 PM
05-16-2002 11:47 PM
Re: Finding user name through uid number
ypcat passwd
Ruediger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 12:00 AM
05-17-2002 12:00 AM
Re: Finding user name through uid number
Thanks for the response. But as I mentioned in the last paragraph of my msg, I do not know the remote NIS server, i.e the NIS server which is not in my domain. So, I'm afraid I can't gain access to the passwd file on that remote NIS server.
Please advice.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 12:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 12:31 AM
05-17-2002 12:31 AM
Re: Finding user name through uid number
Unless others can respond with a better answer, i can't see how your going to get the uid's from another NIS server , if you don't know the name of that NIS master. Do you know the clients they log into ? If so they may be configured to use the local passwd file before refering to the master
If thats the case they would have the same uid on the client and the master
Use the remsh or rexec commands to cat the the passwd file on the remote client
If you can't do that send an email to administrator of that NIS server and ask him/her
What do you think ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2002 01:15 AM
05-17-2002 01:15 AM
Re: Finding user name through uid number
I'm able to get the uid's of all the necessary users from the remote NIS server, which I do not its name by just using the command which you showed:
ypcat passwd.byname |grep uid
Thanks also to everyone for their help. Is there a way which I could reassign points to all of you?
Thanks.