Typically a better way to do this is to add your user to the "wheel" group. Log in as root and using this command: pw groupmod wheel "yourusername". When you replace your username, exclude the quotation marks. Once the regular user has been added, log out and, then, log back in to your normal user account. Then use the command su to then elevate yourself to root. This will make you "essentially" root and then when your done doing administrative tasks type exit or ctrl+Dto return to your unprivileged shell. This is especially useful if you work over a ssh connection, where enabling root login, can be a security risk. Also, do not be in the habit of always working as root. Only use it as necessary.