getent_passwd
Use the getent_passwd command to return a Tcl list of local UNIX users that are defined in the /etc/passwd file on the ADEdit host computer. If the local host is joined to an Active Directory domain, the command also returns information for the Active Directory users who have a profile in the joined domain and zone.
Zone Type
Not applicable
Syntax
getent_passwd
Abbreviation
gep
Options
This command takes no options.
Arguments
This command takes no arguments.
Return Value
This command returns a Tcl list of /etc/passwd file entries with all user profile attributes.
Examples
getent_passwd
This example returns the contents of the local /etc/passwd file:
{root x 0 0 root /root /bin/bash}{bin x 1 1 bin /bin /sbin/nologin}{daemon x 2 2 daemon /sbin /sbin/nologin}{adm x 3 4 adm /var/adm /sbin/nologin}{lp x 4 7 lp /var/spool/lpd /sbin/nologin}{sync x 5 0 sync /sbin /bin/sync}{shutdown x 6 0 shutdown /sbin /sbin/shutdown}
Related Commands
The following command performs actions related to this command:
get_pwnamsearches the/etc/passwdfile for a UNIX user name and, if found, returns a Tcl list of the profile attributes associated with the user.