Difference between revisions of "Getent"
From Notes_Wiki
(Created page with "=getent= On systems that use ldap or other similar mechanims for maintaining /etc/hosts, /etc/passwd, /etc/group etc. files instead of using '<tt>cat /etc/passwd</tt>' we sho...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Getent|getent]] | |||
On systems that use ldap or other similar mechanims for maintaining /etc/hosts, /etc/passwd, /etc/group etc. files instead of using '<tt>cat /etc/passwd</tt>' we should use '<tt>getent passwd</tt> to get passwd entries from local file as well as from other sources. | On systems that use ldap or other similar mechanims for maintaining /etc/hosts, /etc/passwd, /etc/group etc. files instead of using '<tt>cat /etc/passwd</tt>' we should use '<tt>getent passwd</tt> to get passwd entries from local file as well as from other sources. | ||
Line 19: | Line 19: | ||
*services | *services | ||
*shadow | *shadow | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Getent|getent]] |
Latest revision as of 12:11, 28 July 2022
Home > CentOS > CentOS 6.x > System administration tools > 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
Home > CentOS > CentOS 6.x > System administration tools > getent