-
Notifications
You must be signed in to change notification settings - Fork 53
listusers
Ulrich Berntien edited this page Mar 26, 2019
·
3 revisions
Internal Orc function to be used in the Orc script.
Users of Orc should use the getusers function.
listusers - lists users in passwd with login shells
listusers
listusers lists all user in the passwd with a login shell.
A login shell is each program listed in the /etc/shells files. Users with shell nologin and false are never listed. Typical nologin and false are not in “shells”. But also if these programs are in the “shells” the user with this shells will be not listed.
listusers lists the user names to stdout.
Run the function. There are no command line arguments.
$ listusers
The function reads
- the /etc/passwd file through the tool getent,
- the /etc/shells file direct.