Do Everything on a Mac as Root
Thursday, September 27th, 2007 -- By ETIf 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.
This cartoon from xkcd says it all.


