Need to find the user id of all users in UNIX | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Need to find the user id of all users in UNIX

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-07-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
Need to find the user id of all users in UNIX

I need to find all the unix user id's of all the users in unix... is there any such command... pl help out
Sponsored Links
    #2  
Old 02-07-2013
ningy's Avatar
ningy ningy is offline
Registered User
 
Join Date: May 2009
Last Activity: 11 June 2014, 2:05 AM EDT
Location: Bangalore, India
Posts: 131
Thanks: 11
Thanked 17 Times in 16 Posts
y dont u take a look at the /etc/passwd ?

or command
Code:
id username

?
Sponsored Links
    #3  
Old 02-07-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
No, i need the list of user id in unix totally.. avoiding duplicates
    #4  
Old 02-07-2013
franzpizzo's Avatar
franzpizzo franzpizzo is offline
Registered User
 
Join Date: Feb 2013
Last Activity: 6 February 2014, 9:56 AM EST
Posts: 68
Thanks: 0
Thanked 12 Times in 12 Posts
I suppose you want a thing like this


Code:
awk -F: '{ print $1, $3; }' /etc/passwd

Sponsored Links
    #5  
Old 02-07-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
no dude... i need the ldap id's off all the user's in my organisation
Sponsored Links
    #6  
Old 02-07-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 28 August 2014, 4:55 AM EDT
Location: /dev/ph
Posts: 4,786
Thanks: 63
Thanked 424 Times in 393 Posts
Quote:
Originally Posted by Syed Imran View Post
no dude... i need the ldap id's off all the user's in my organisation
It would have been helpful if you had told us this in the first place instead of wasting peoples time. We are not mind readers! The more information you supply in your initial post the faster and better answer you will get.
Sponsored Links
    #7  
Old 02-07-2013
Syed Imran Syed Imran is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 14 March 2014, 4:22 AM EDT
Location: India
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
dats y i had to post again dude... sorry... pls help out in this
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need to find the OS JRE as well as User installed JRE on my UNIX box! ali40 UNIX for Dummies Questions & Answers 5 12-22-2010 04:46 AM
IF $USER is not in this list of users, then do this glev2005 Shell Programming and Scripting 5 10-15-2009 03:34 AM
How to find one partucular user logs when there are lots of users running on it ksr.test UNIX for Advanced & Expert Users 4 10-07-2008 03:39 AM
how to find password for current user in unix box balireddy_77 Shell Programming and Scripting 1 01-30-2007 02:42 AM
su - user... how to find out the list of users and their passwords.. yls177 UNIX for Dummies Questions & Answers 2 11-13-2002 06:07 AM



All times are GMT -4. The time now is 07:06 AM.