Use the Apache-built Samba server to change the password environment by using the ChangePassword component User:
Visit: http://192.168.25.57/samba/changepassword.cgi 403 error
[Email protected] samba]# curl-i 192.168.25.57/samba/changepassword.cgihttp/1.1 403 forbiddendate:tue, Jan 2016 08:4 9:56 gmtserver:apache/2.4.17 (Unix) php/5.5.9content-type:text/html; Charset=iso-8859-1
To view the Apache Installer directory error log:
Cat/usr/local/apache2/logs/error_log[tue Jan 18:29:02.313632] [cgid:error] [pid 29240:tid 3075713936] [client 19 2.168.30.228:59435] Ah01262:options execcgi is off in this directory:/tool/www/samba/changepassword.cgi
You are not prompted to find
Off in this directory:/tool/www/samba/changepassword.cgi #找不到该配置文件
To edit the Apache master configuration file:
213 documentroot "/usr/local/apache2/htdocs" 214 <directory "/Tool/www /samba "> #改成changepassword安装目录 215 #216 # Possible values for the Options directive are "None", "All",217 # or any combination of:218 # indexes includes followsymlinks symlinksifownermatch execcgi multiviews219 #220 # Note that "MultiViews" must be named * explicitly* --- "options all" 221 &NBSP;&NBSP;&NBSP;&NBSP;#&NBSP;DOESN ' t give it to you.222 # 223 # the options directive is both complicated and important. please see224 # http:// httpd.apache.org/docs/2.4/mod/core.html#options225 # for more information.226 # options indexes followsymlinks execcgi
Perform/usr/local/apache2/bin/apachectl restrt #重启apache
/usr/local/apache2/bin/apachectl-t #语法检查
Refresh the browser for normal access.
This article from "Boyhack" blog, declined reprint!
Options execcgi is off in this directory:/tool/www/samba