0

I'm trying to change the group of several files in Mac OS X using the group nogroup:

chown my_user:nogroup file.txt

Problem is that it does not change at all, although the nogroup is currently listed in /etc/group and Directory Service (I checked it with dscl . list /groups).

What can be happening?

EDIT: I wanted to do this because XAMMP user and group is nobody:nogroup, and I needed XAMMP's httpd server to be able to write in some directories. I ended up changing the group to _www, but curiosity made ask this question.

Thanks!

1 Answer 1

1

Because the GID of nogroup is (intentionally) -1, which is an illegal GID for chown.

Why do you want to do that?

1
  • However, you can do it with nobody group, which is -2. That's why I got surprised. I've edited the question to clarify my purpose
    – elitalon
    Mar 11, 2011 at 9:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .