chown非法集团名称(mac os x)

时间:2021-07-20 18:32:00

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.

我使用的是mac osx (mountain lion),我安装了命令行工具。我真的不太了解unix,但是我一直在google上搜索非法的组名错误,并且没有找到任何有用的东西。我俯瞰着什么呢?你认为可能有用的任何额外资源也会受到重视。

2 个解决方案

#1


16  

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.

非法组名称实际上意味着您指定的组(在冒号之后的couchdb—第一个couchdb是用户)不存在。您需要创建组,停止指定组,或者指定存在的组。

#2


7  

Try using just the owner if no group.

如果没有团队,可以尝试使用所有者。

sudo chown -R user: ~/.virtualenvs 

#1


16  

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.

非法组名称实际上意味着您指定的组(在冒号之后的couchdb—第一个couchdb是用户)不存在。您需要创建组,停止指定组,或者指定存在的组。

#2


7  

Try using just the owner if no group.

如果没有团队,可以尝试使用所有者。

sudo chown -R user: ~/.virtualenvs