Difference between revisions of "Getent"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb>System administration tools</yambe:breadcrumb>
<yambe:breadcrumb self="Getent">System administration tools|System administration tools</yambe:breadcrumb>
=getent=
=getent=


Line 20: Line 20:
*services  
*services  
*shadow
*shadow
<yambe:breadcrumb self="Getent">System administration tools|System administration tools</yambe:breadcrumb>

Revision as of 09:15, 27 August 2018

<yambe:breadcrumb self="Getent">System administration tools|System administration tools</yambe:breadcrumb>

getent

On systems that use ldap or other similar mechanims for maintaining /etc/hosts, /etc/passwd, /etc/group etc. files instead of using 'cat /etc/passwd' we should use 'getent passwd to get passwd entries from local file as well as from other sources.

'getent' also supports following other arguments

  • ahosts
  • ahostsv4
  • ahostsv6
  • aliases
  • ethers
  • group
  • gshadow
  • hosts
  • netgroup
  • networks
  • passwd
  • protocols
  • rpc
  • services
  • shadow


<yambe:breadcrumb self="Getent">System administration tools|System administration tools</yambe:breadcrumb>