scutil on OSX 10.10.11, and dscl

zeus:postfix robert$ scutil –get ComputerName
zeus:postfix robert$ scutil –get LocalHostName
zeus:postfix robert$ scutil –get HostName

Now this I MUST remember. Disaster almost struck….. I had root and dove null, and dovecot al the same UniqueID and GroupID. OH NO!!!

Here’s how I fixed it.

sudo chown -R `id -un`:`id -gn` ~

and it will change the permissions correctly on your home directory. (adjust the above for a different user)

using dscl changing UID and GUID is done as follows

sudo dscl . create /Users/username PrimaryGroupID 450
sudo dscl . create /Users/username UniqueID 450

the above example will set UID and GID to 450.

Now I have my root (0) back, and dovecot is 5060, and dove null is 5050 – nice.


Posted in Default Category | Leave a comment