Do Everything on a Mac as Root

By ET

If you don’t know what the title means, just ignore this post.  :-p

I found that on a Mac, I can’t really “su root” as I  often do on Linux.  Whenever I change the root password, I can “su root”, but the next time when I start “Terminal”, the root password is not recognized.  The trick lies in creating a super user account, then “sudo” each time.

For example, to move some files to a directory that the current user does not have right to write.  I can do:

sudo mv somefiles* /home/root/dir

Good thing is that the only difference is to add sudo in the beginning.

sandwich.png

 This cartoon from xkcd says it all.

2 Responses to “Do Everything on a Mac as Root”

  1. sun wei Says:

    The cartoon is so interesting! :-)

  2. Perry Edner Says:

    TO Website Owner! I like your WordPress site and I found your site with Google so I thought you could make some money off of this snf improve your websites performance at the same time. There’s a WordPress SEO plugin that does automatic SEO for your website, automatic SEO addons like this are brand new to the blogging scene so having this would give your page a huge jump in traffic. If you are serious about making your blog get bigger then click my name to check it out.

Leave a Reply


BlogTimer
You are visitor number several since September 1, 2001

Copyright Xiaoquan (Michael) Zhang, 2004-2020. All rights reserved.
All trademarks property of their owners.