chown illegal group name (mac os x)

MacosUnixTerminalChown

Macos Problem Overview


I'm trying to run the following command in Terminal:

chown -R couchdb:couchdb /usr/local/var/log/couchdb

However, I keep getting this message:

chown: couchdb: illegal group name

I am using mac osx (mountain lion) and I have command line tools installed. I really don't know very much about unix, but I've been googling the illegal group name error and haven't turned up anything that would help. What am I overlooking? Any additional resources you think might be helpful also appreciated.

Macos Solutions


Solution 1 - Macos

Try using just the owner if no group.

sudo chown -R user: /usr/local/var/log/couchdb

Solution 2 - Macos

illegal group name actually means that the group you're specifying (the couchdb after the colon -- the first couchdb is the user) doesn't exist. You need to either create the group, stop specifying a group, or specify a group that exists.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionegonView Question on Stackoverflow
Solution 1 - MacosjackotonyeView Answer on Stackoverflow
Solution 2 - MacoschaosView Answer on Stackoverflow