"Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com> writes:
> I don't know MacOS very well, and it's been a while that I last
> had my hands on MacOS X (>2 years). Are you saying that
> you use MacOS as user root by default, rather than as a non
> privileged account?
Certainly not. The problem was the "sudo" in the OP's command.
regards, tom lane