Published on
1. May 2011 in
MacOS.
Hey you root lovers,
no, it’s not a dream, you can haz root on MacOS, too. First, out of security reasons, I recommend to use sudo to do all the nasty stuff on the console. If that ain’t enough, the root users needs to be enabled first. As on most modern Linux distributions, you can enable the root user by assigning a root password (works on Ubuntu et al.):
The second – more mac oriented – way is the following:
- Go to System Preferences and then select Accounts
- Click on the lock and authenticate with an administrator account.
- Click Login Options….
- Click the “Edit…” or “Join…” button at the bottom right.
- Click the “Open Directory Utility…” button.
- Click on the lock and authenticate with an administrator account.
- Choose Enable Root User from the Edit menu.
- Enter the root password you wish to use in both the Password and Verify fields, then click OK.
The steps to disable the root user afterwards are nearly the same, so I won’t repeat myself.
The second way was taken from here
Published on
1. May 2011 in
MacOS.
Hey peeps around the world,
recently I copied some files from one mac to another via network. At first, the access rights on the remote computer were messed up somehow. The nobody user had its finger in the pie. Finally, I’ve made it to copy the files. Now that the files were on my disk, they were still locked and the permissions were still messed up somehow. So, as a Linux guy, I just tried to chown the files, but this leads to an operation not permitted, although I was running chown in sudo mode. After some research I found out that the files were locked, which couldn’t be changed via the finder app. Fortunately, this can also be changed via CLI:
1
| $ sudo chflags -R nouchg /path/to/files |
Happy unlocking!
Published on
15. March 2011 in
MacOS.
Hey people out there,
daddy’s got a brand new toy to play with. I’ve bought myself a macBook pro and this piece of pleasure impresses me again day after day. I’ve just discovered that one can sync the addressbook app with their google account.
Here you go:
- Edit the file ~/Library/Preferences/com.apple.iPod.plist
1
| { Devices = { red-herring = { 'Family ID' = 10001; }; }; } |
If the file is not present, then create it. If the file is present and too heavy to read, use some property browser.
-
Now, open up Mac addressbook and go to preferences. There, the “Sync with google” option should now be available on the “accounts” tab. Activate it and enter your Google credentials.
-
An actual sync can be triggered with the following command:
1
| $ /System/Library/PrivateFrameworks/GoogleContactSync.framework/Versions/A/Resources/gconsync --sync com.google.ContactSync |
I don’t know, if this only has to be done initially or anytime a sync is wanted… TBD.