macOS
/ binaries
/
dsenableroot
/usr/sbin/dsenableroot
Enables or disables the root account
dsenableroot
sets the password for the root account if enabling the root user account.
source: man