MacOS – OSX Mavericks Root User

macospermissionroot

I know it is possible to enable root user and then logging in as the root user. But is it possible to get root access with your admin account in OSX Mavericks?

It is kinda annoying to always type the password whenever you are installing stuff and using the terminal.

Last resort would be to always login as the root user?

Best Answer

sudo asks for the admin password only if you haven't used the command in the last 15 minutes or so. For extended root sessions I usually run sudo -s to create a new shell with root privileges.