远程用户:ab 升级用户:UNIX
当我将复制模块复制到/etc/profile.d/时,拒绝其抛出错误权限。 但是带有shell和命令模块。
sudo cp myscript.sh /etc/profile.d/
它是从UNIX用户那里工作的。我想使用ansible模块而不是shell或command。这里是UNIX用户的sudo问题来执行具有sudo特权的命令。成为用户,我不能直接使用root。没有通过Unix用户的访问权限,我可以使用sudo。
已在以下详细信息中使用。
become=yes
become_method=sudo
become_user=unix
become_ask_pass=false
答案 0 :(得分:0)
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
表示它以root身份而不是用户unix身份运行。
尝试删除该行
sudo cp