You use the NetInfo Manager in Utilities to enable root and set the password. It is disabled by default for security purposes.
However, don't use it unless you really need to. It's rather powerful so unless you know what you're doing, it's quite easy to break your Mac whilst playing.