Where does id / getent query ? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

Where does id / getent query ?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-13-2012
MaindotC MaindotC is offline
Registered User
 
Join Date: May 2011
Last Activity: 28 March 2013, 10:40 AM EDT
Posts: 94
Thanks: 25
Thanked 0 Times in 0 Posts
Where does id / getent query ?

I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it queries the local /etc/passwd file first, and then if it doesn't find anything it would query LDAP correct?
Sponsored Links
    #2  
Old 11-13-2012
Scrutinizer's Avatar
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 29 July 2014, 1:11 AM EDT
Location: Amsterdam
Posts: 9,281
Thanks: 260
Thanked 2,303 Times in 2,066 Posts
Have a look at /etc/nsswitch.conf
Sponsored Links
    #3  
Old 11-13-2012
MaindotC MaindotC is offline
Registered User
 
Join Date: May 2011
Last Activity: 28 March 2013, 10:40 AM EDT
Posts: 94
Thanks: 25
Thanked 0 Times in 0 Posts
Yep, did look in there but didn't see anything that matched "getent" or "id"...I'm assuming I'll eventually have to look at the source code for getent and see where it calls nsswitch.conf.

Edit: I think I have it. Thanks!

Last edited by MaindotC; 11-13-2012 at 06:00 PM..
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
getent hosts snoman1 Shell Programming and Scripting 1 10-05-2012 03:49 PM
getent not working, solaris 10 only BG_JrAdmin Solaris 6 02-10-2012 02:30 AM
Shell Script to execute Oracle query taking input from a file to form query DevendraG Shell Programming and Scripting 2 11-10-2011 05:56 AM
Query Oracle tables and return values to shell script that calls the query balaeswari Shell Programming and Scripting 6 02-04-2010 08:35 AM
add the output of a query to a variable to be used in another query hazno Shell Programming and Scripting 0 03-24-2009 08:52 PM



All times are GMT -4. The time now is 04:40 AM.