朋友们,试着在我的unbut 10.04框中设置用户密码,但在appache错误日志中显示==>
[Sat Mar 16 11:54:40 2013] [错误] [client :: 1]文件不存在:/var/www/favicon.ico 输入新的UNIX密码:重新键入新的UNIX密码:passwd:身份验证令牌操作错误 passwd:密码不变
我的PHP代码
$pp = popen("sudo passwd dd", "w");
fwrite($pp, 2 . '\n');
sleep(1);
fwrite($pp, 2 . '\n');
pclose($pp);
sudo订单文件,
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
www-data ALL=(ALL) NOPASSWD : ALL
deepu ALL=(ALL) NOPASSWD: ALL
提前致谢....