public marks

PUBLIC MARKS from realmip with tags php & security

February 2007

PHP 修改 Linux 系統密碼 - Real-Blog

在前幾篇文章介紹過 PHP 透過 Sudo 執行 root 指令,對於單行的指令沒有問題,但如果要執行 passwd 修改系統密碼的話便不行了。 要解決可以安裝 super 或 expert,而另一個方法是用非互動的方法修改密碼,但如果主機上有其他用戶可以放置他們的網頁,則不建議使用。以下是具體步驟: 1. 用 root 執行 visudo,加入以下一行: apache ALL=NOPASSWD:/usr/bin/passwd [A-z]*, !/usr/bin/passwd root

October 2006

September 2006

June 2006

realmip's TAGS related to tag php

amp +   analysis +   apache +   big5 +   centos +   class +   cms +   compile +   debian +   eaccelerator +   encryption +   fc5 +   fedora +   freebsd +   gd +   hash +   iconv +   install +   joomla +   lamp +   linux +   mail +   mbstring +   myaql +   mysql +   password +   pczone +   phpmyadmin +   ports +   quota +   regexp +   security +   server +   tarble +   tutorial +   ubuntu +   utf-8 +   windows +   XAMPP +   討論區 +