Tip Details

Rate as: Positive Negative

Root user on a Mac

If you use the command line on a Mac, you may run into the issue that you can't change over into the root user. If you try to su -root to change to the root user, it will fail.

One way around this is to use the sudo command as a prefix to the command you are trying to run. When you prefix a command with sudo, the command gets run as the root user. For example, sudo rm file.text would remove the file.text file as to root user (which may be needed depending on the permissions of this file.

Another way around this is to enable the root user in the shell. You can do this by assigning a password to the root user using this command: sudo passwd root and then entering a password. Once you do this, the su -root command will be allowed, and you will be able to run in the shell as the root user.
Rating: 100% positive, 1 Vote
Categories: Mac OS X
Added: on Jun 29, 2007 at 9:56 am
Added By: an anonymous user
Searches: root user mac command

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

New screen capture options in Leopard

88% positive, 3 comments - last added on Jun 06, 2008 at 6:55 am
– Tip added by mollyp on Jan 22, 2008 at 12:36 pm

Gimp no longer working on Mac OS X 10.5.7

Categories: gimp X11 Mac OS X 10.5.7
85% positive, 1 comment - last added on Oct 13, 2009 at 2:19 pm
– Tip added by an anonymous user on May 28, 2009 at 4:52 pm

Quick Mac Calculator

85% positive, 3 comments - last added on Jun 02, 2009 at 3:38 pm
– Tip added by an anonymous user on Jun 09, 2008 at 7:45 am

Updating to OS X 10.5.5 with verification errors

Categories: Apple OS X Mac update
100% positive, 3 comments - last added on Sep 18, 2008 at 4:46 pm
– Tip added by an anonymous user on Sep 18, 2008 at 9:00 am

Selecting text in the terminal window

Categories: Mac Leopard terminal OS X
100% positive, 0 comments
– Tip added by an anonymous user on Jul 15, 2008 at 3:51 pm

Organizing mailboxes in Snow Leopard

Categories: Mac Snow Leopard Mac
100% positive, 1 comment - last added on Feb 17, 2010 at 10:11 am
– Tip added by an anonymous user on Oct 15, 2009 at 9:03 am

Mac shortcuts for shutting down

100% positive, 0 comments
– Tip added by an anonymous user on Oct 16, 2008 at 9:35 am

Using the tab key to switch between dialog buttons

Categories: Mac keyboard shortcut OS X
100% positive, 0 comments
– Tip added by an anonymous user on Oct 15, 2008 at 2:27 pm

Dragging files on the Mac

Categories: Mac OS X Tiger Leopard
50% positive, 2 comments - last added on Jun 02, 2009 at 2:39 pm
– Tip added by an anonymous user on Sep 25, 2008 at 5:14 pm

Choosing the default wireless network

100% positive, 1 comment - last added on Sep 09, 2008 at 7:55 am
– Tip added by an anonymous user on Sep 08, 2008 at 10:25 pm

Keep .DS_Store files from being created

Categories: Mac files OS X Finder
100% positive, 0 comments
– Tip added by an anonymous user on Aug 12, 2008 at 12:58 pm

Create your own system sounds on the Mac

100% positive, 0 comments
– Tip added by an anonymous user on Oct 07, 2008 at 1:20 pm

Adding searches to the Finder sidebar

100% positive, 0 comments
– Tip added by an anonymous user on Jun 27, 2008 at 9:07 am

Change in Spaces behavior

Categories: Mac OS X Spaces Leopard
100% positive, 0 comments
– Tip added by an anonymous user on Jun 02, 2008 at 10:35 am

Changing the default application

Categories: Mac Finder OS X
100% positive, 0 comments
– Tip added by an anonymous user on May 22, 2008 at 10:32 am

Determine PDF sizes based on the icon

Categories: Mac pdf icons OS X
100% positive, 0 comments
– Tip added by an anonymous user on May 20, 2008 at 2:50 pm

Startup pref doesn't work

no ratings, 0 comments
– Tip added by an anonymous user on Feb 10, 2010 at 7:47 pm

Application compatibility with Snow Leopard

no ratings, 0 comments
– Tip added by an anonymous user on Aug 27, 2009 at 4:40 pm

Menu and Dock access to Mac drives

no ratings, 0 comments
– Tip added by an anonymous user on Aug 13, 2008 at 12:02 pm

Customize the columns in the Activity Monitor

no ratings, 0 comments
– Tip added by an anonymous user on Aug 08, 2008 at 12:54 pm