Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chef infra Chef Mount必须是root才能使用选项_Chef Infra_Chef Recipe_Chef Solo - Fatal编程技术网

Chef infra Chef Mount必须是root才能使用选项

Chef infra Chef Mount必须是root才能使用选项,chef-infra,chef-recipe,chef-solo,Chef Infra,Chef Recipe,Chef Solo,我有下面的mount命令作为我的食谱的一部分。我需要以root用户的身份运行它,因为我收到一条只有root用户才能使用选项的错误消息。谢谢你在adavance的帮助 mount mounted_dir do action :mount fstype 'cifs' device '//192.168.0.100/Users/rcondron/Desktop/smart-mobile-images' enabled node['smart-mobile']['share']['mou

我有下面的mount命令作为我的食谱的一部分。我需要以root用户的身份运行它,因为我收到一条只有root用户才能使用选项的错误消息。谢谢你在adavance的帮助

mount mounted_dir do
  action :mount
  fstype 'cifs'
  device '//192.168.0.100/Users/rcondron/Desktop/smart-mobile-images'
  enabled node['smart-mobile']['share']['mount_share']
  options "username=testuser,password=testpwd,domain=domain,file_mode=0777,dir_mode=0777,uid=0"
end

然后,您需要以root身份运行Chef本身


mount
命令是以任何用户
chef client
chef solo
的运行方式运行的,如果您收到一个错误,说它不是root,那么我怀疑您运行chef的方式有问题。

您需要以root身份运行chef本身


mount
命令以任何用户
chef client
chef solo
的身份运行,如果您收到一个错误,表明它不是root用户,那么我会怀疑您运行Chef的方式有问题。

我正在使用sudo,它是从omnibus reconfigure运行的。我已尝试更改为我的root用户,但结果没有变化。我想问题在于omnibus ctl。。。我会深入挖掘并确认。这并不能回答这个问题。若要评论或要求作者澄清,请在其帖子下方留下评论。-
mount
命令是以任何用户
chef client
chef solo
运行的方式运行的,如果您收到一个错误,说它不是root,那么我会怀疑您运行chef的方式有问题。@pczeus很遗憾,问题是,这是唯一可能的答案。我正在使用sudo,它是从omnibus reconforme运行的。我已尝试更改为我的root用户,但结果没有改变。我认为问题在于omnibus ctl。。。我会深入挖掘并确认。这并不能回答这个问题。若要评论或要求作者澄清,请在其帖子下方留下评论。-
mount
命令是以任何用户
chef client
chef solo
运行的方式运行的,如果您收到一个错误,说它不是root,那么我会怀疑您运行chef的方式有问题。@pczeus很遗憾,问题是,这是唯一可能的答案。在“答案”下,请详细说明您正在做什么。可能还包括错误日志……在您谈论的答案下,请详细说明您正在做什么。可能包括错误日志。。。