What is a "root user"?

I'm learning C on my Mac and I need to create folders for my C program files.
It says that I should not be logged in as the root account since it is a security risk, so does this mean that I need to create another user account on my Mac and use that instead of the main admin account? If I just ignore this warning, will it cause problems on my Mac?
Thank you in advance,
J

From "C for Dummies" -
------------------------------------------------------------
Linux, FreeBSD, Mac OS X, or Unix: To create a folder for your C program
ming projects, obey these steps:

1. If you’re using a graphical shell, open a terminal window. You need to
get at the command prompt.

The terminal window should open into your account’s home directory. If
you aren’t in your home directory, type the cd command to return there.

Ensure that you’re not logged in as the root account; creating programs
as the root user is a security risk.
--------------------------------------------------------

Mac Mini 2009 (2GHz/4GB), Mac OS X (10.5.8), 20" Apple Cinema Display, iPhone 3G

Posted on Aug 16, 2009 10:08 PM

Reply
6 replies

Aug 16, 2009 10:14 PM in response to J_EXILE

Are you using the root account everyday? If so, make a new account.

It says that I should not be logged in as the root account since it is a security risk, so does this mean that I need to create another user account on my Mac and use that instead of the main admin account? If I just ignore this warning, will it cause problems on my Mac?

Root is the system account that OS X uses and should never be used by anyone but the system. The account has absolutely no restrictions and can thus be very dangerous (there are huge security risks that come with using the account).

Ensure that you’re not logged in as the root account; creating programs

as the root user is a security risk.
If you are not actually logged in as root, you can simply ignore that warning. It's just a precaution the instructions give you.

Aug 16, 2009 10:24 PM in response to Community User

thanks for your reply,
i don't think i'm using root account because this is the first time i've ever heard of it and i'm just a casual user. Since i am an admin on my computer does this mean I'm automatically logged in as a root user? if that's the case, should i just create a new user account and use that instead just to be on the safe side? all this is new to me and somewhat intimidating....
thanks

Aug 16, 2009 10:36 PM in response to J_EXILE

J_EXILE wrote:
thanks for your reply,
i don't think i'm using root account because this is the first time i've ever heard of it and i'm just a casual user. Since i am an admin on my computer does this mean I'm automatically logged in as a root user?


No, unless you specifically enabled the root account, and you enter "root" into the login screen as the username, you are not running root.

if that's the case, should i just create a new user account and use that instead just to be on the safe side? all this is new to me and somewhat intimidating....


A normal admin account is perfectly fine to use for what you are doing. Just stick with your current account. 😉

thanks

Aug 17, 2009 1:07 AM in response to J_EXILE

though it may not be needed anymore,
I'd like to shed some light on what ROOT precisely is:

ROOT or root, is a Unix system administrative account,
meaning, it can do anything, but then really anything,
when logged in as ROOT you can even damage the system if you like,
by, for example, deleting or modifying a system file,
though you may not want to, you will have the privileges to do so.

any Unix system has a ROOT account
(that's to say, besides Mac OS X; Linux, BSD and Darwin (and several others) also have a ROOT account)

the reason you should not login as ROOT is simple:
any virus has the same privileges as the currently logged in account,
so, if you login as ROOT, a virus can do anything with your computer,
if you are logged in with a other admin account, a virus can't do anything
since you need a password for administrative features

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What is a "root user"?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.