public marks

PUBLIC MARKS from realmip with tags security & php

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 security

account +   apache +   arp +   autorun +   backup +   boot +   cacti +   command +   copy +   delete +   desktop +   dns +   dos +   efs +   emule +   encryption +   enterprise +   ext2 +   fc5 +   fedora +   file +   filesystem +   firefox +   firewall +   forum +   ftp +   geek +   gnome +   hack +   hash +   http +   icmp +   im +   information +   inprotect +   ip +   ipsec +   iptable +   iptables +   isms +   kde +   l7-filter +   layer 7 +   linux +   mysql +   namp +   nat +   nessus +   network +   netwrok +   nmap +   ntfs +   office +   openssh +   openssl +   p2p +   pam +   password +   pczone +   php +   phpmyadmin +   port +   portable +   printer +   process +   putty +   recovery +   red hat +   reference +   rookit +   rsa +   scan +   scp +   selinux +   server +   setup +   sftp +   sid +   snmp +   snort +   socket +   squid +   ssh +   ssl +   sysetm +   system +   tcpip +   tips +   tutorial +   umask +   usb +   web +   windows +   xp +   伺服器 +   安全 +   技巧 +   木馬 +   網路 +   防火牆 +