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.

  1. 1
    sun wei Says:

    The cartoon is so interesting! :-)

Leave a Reply


BlogTimer
You are visitor number several since September 1, 2001

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