The ifconfig is present under /sbin director and the PATH of the normal users don’t point to /sbin directory and if execute “ifconfig” under normal by using any normal cPanel user login details then it will not show you.
you can set PATH to add /sbin #PATH=$PATH:/sbin
Or you can enter command with full path like # /sbin/ifconfig