Running defaults command as root vs regular user
Yes , it's different if you run as root or regular user. In the first case you have all permissions, the second you have the permission of the domain of the application. Not every time the permissions are the same.