How do you know if you are running as root user or standard user?
> How do you know if you are running as root user or standard user?
Open System Preferences, then User Accounts, then find your user name in the list of accounts. It should tell you if your account is Admin or Standard. If it’s Standard then you are not root, and can’t be even if you try.
If it’s Admin, then you can become root if you request it. To tell if you are root, open Terminal (in Applications, Utilities) and type the command:
whoami
Then the Return key. It will print your username.
No OS X Mac runs as a Root user. . . that has to be activated and then even then you don't run in root. From OS X, Root is a one time command user that is used by the Terminal. If you are running your Mac by UNIX command line, you can be a permanent Root User, but that is so rare, only real Geeks might do it. . . and then they generally are not going to put their Macs to sleep.
Most Mac users are going to be either an Administrator user (default out-of-the-box user), or Standard user for those who know how to be safe computer user).
You should be running as a Standard user with a second user in reserve as the Administrator for installing software and doing system routines.
To find out what kind of user you are running as, go to the Black Apple Menu and select System Preferences. . . /Users and Groups and see if you are running as Standard or Admin.
If you are running as Admin, create a new user by following these steps:
You will notice your user name is now on the menu bar just to the left of the Spotlight search icon and if you click on it, you can switch users rapidly to the Administrator Account (you'll have to enter the admin password) to do any housekeeping or install software. If you want to download or install software, the system will prompt you, as a standard user, to enter the admin's user name and password. You will not have to switch to the admin account to do it, but you will have to know the admin name and password to do it.
If you log onto your administrator account for any reason, ALWAYS log off when you are done. NEVER LEAVE IT RUNNING!
This is the safest way to use your Mac computer.
To activate Root, a user MUST be running as an Administrator and then open the Terminal and then deliberately activate Root and give it a Root user name and root user password.