Prev: 'lp' question
Next: What's this about sun/oracle type-7 keyboards being only PC layout? (soon?)
From: tony_curtis32 on 7 May 2010 18:47 CKM <ckmehta(a)gmail.com> writes: > Besides some grepping through /etc/passwd and assumptions of > repository order in nsswitch.conf, is there any method to easily > determine is a user is local vs LDAP? > > The ldaplist command is a pretty good start to tell me if a user is in > LDAP, but it doesn't preclude a user being in /etc/passwd and > depending on nsswitch.conf, either could take precedence. If by "local" you do mean "present in /etc/passwd" then basically you're going to have to search /etc/passwd. You're at fields in /etc/passwd so you might want to think about awk/perl instead of grep (or anchor the regexp appropriately). hth t
|
Pages: 1 Prev: 'lp' question Next: What's this about sun/oracle type-7 keyboards being only PC layout? (soon?) |