Make sure the system flags utility creates the flag directory with 777 permissions. That ensures that all users (root included) can create flags there as necessary.