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


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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-13-2012
Registered User
 
Join Date: May 2011
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
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,353
Thanks: 144
Thanked 1,756 Times in 1,593 Posts
Have a look at /etc/nsswitch.conf
Sponsored Links
    #3  
Old 11-13-2012
Registered User
 
Join Date: May 2011
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 07:46 PM.