需要修改master主机的配置文件 修改配置如下 [root@master]# cat /etc/salt/master.d/eauth.conf external_auth: pam: saltapi: - .* - '@wheel' - '@runner' 便可解决以上问题