Nk_list_all_users

Table of Contents

Home

Description

Get a list of all Cpanel users on a system.

Example

[root@cloudvpsserver ~]# nk_list_all_users
nkern

Code

nk_list_all_users() {
    awk '{print $2}' /etc/userdomains | grep -Ev "^nobody$" | sort | uniq
}

Author: Nichole Kernreicht

Created: 2023-04-12 Wed 20:09