2016年3月20日 星期日

Windows 7 update 更新時間過長解決方式!

至官方網站下載修補程式KB3102810,安裝後即可解決!!
參考資料:http://blog.xuite.net/trad546/blog/372449538

2.  https://support.microsoft.com/zh-tw/kb/2730071

2016年3月15日 星期二

移除WINDOWS 10 更新通知

方法一:
至控制台新增移除程式,移除Microsoft Windows 的更新 (KB3035583)
(重新開機後,右下角ICON就會消失不見!)


方法二:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade\AllowOSUpgrade  (DWORD數值改成0)

不一定能成功!

方法三:

taskkill /f /im GWX.exe
taskkill /f /im GWXUX.exe
cd/d C:\Windows\System32
takeown /f GWX
cacls GWX /e /g everyone:f

rd/q/s GWX


參考出處:http://tech.smallya.net/2016/05/05/%E6%B0%B8%E4%B9%85%E7%A7%BB%E9%99%A4-windows-10-%E5%8D%87%E7%B4%9A%E6%8F%90%E7%A4%BA/

2016年3月10日 星期四

Windows Server 2012 各版本比較表

 Editions
Foundation
Essentials
Standard
Datacenter
Distribution
OEM Only
Retail, volume licensing, OEM
Retail, volume licensing, OEM
Volume licensing and OEM
Licensing Model
Per Server
Per Server
Per CPU pair + CAL/DAL
Per CPU pair + CAL/DAL
Processor Chip Limit
1
2
64
64
Memory Limit
32GB
64GB
4TB
4TB
User Limit
15
25
Unlimited
Unlimited
File Services limits
1 standalone DFS root
1 standalone DFS root
Unlimited
Unlimited
Network Policy & Access Services limits
50 RRAS connections and 10 IAS connections
250 RRAS connections, 50 IAS connections, and 2 IAS Server Groups
Unlimited
Unlimited
Remote Desktop Services limits
50 Remote Desktop Services connections
Gateway only
Unlimited
Unlimited
Virtualization rights
n/a
Either in 1 VM or 1 physical server, but not both at once
2 VMs
Unlimited
DHCP, DNS, Fax server, Printing,  IIS Services
Yes
Yes
Yes
Yes
Windows Server Update Services
No
Yes
Yes
Yes
Active Directory Services
Yes, Must be root of forest and domain
Yes, Must be root of forest and domain
Yes
Yes
Active Directory Certificate Services
Certificate Authorities only
Certificate Authorities only
Yes
Yes
Windows Powershell
Yes
Yes
Yes
Yes
Server Core mode
No
No
Yes
Yes
Hyper-V
No
No
Yes
Yes

2016年3月7日 星期一

linux系統權限

常用的linux文件權限:
444 r--r--r--
600 rw-------
644 rw-r--r--
666 rw-rw-rw-
700 rwx------
744 rwxr--r--
755 rwxr-xr-x
777 rwxrwxrwx
從左至右,1-3位數字代表文件所有者的權限,4-6位數字代表同組用戶的權限,7-9數字代表其他用戶的權限。
而具體的權限是由數字來表示的,讀取的權限等於4,用r表示;寫入的權限等於2,用w表示;執行的權限等於1,用x表示;
通過4、2、1的組合,得到以下幾種權限:0(沒有權限);4(讀取權限);5(4+1 |讀取+執行);6(4+2 |讀取+寫入);7(4+ 2+1 |讀取+寫入+執行)
以755為例:
1-3位7等於4+2+1,rwx,所有者俱有讀取、寫入、執行權限;
4-6位5等於4 +1+0,rx,同組用戶具有讀取、執行權限但沒有寫入權限;
7-9位5,同上,也是rx,其他用戶具有讀取、執行權限但沒有寫入權限。
rwx權限數字解釋
chmod也可以用數字來表示權限如chmod 777 file
語法為:chmod abc file
其中a,b,c各為一個數字,分別表示User、Group、及Other的權限。
r=4,w=2,x=1
若要rwx屬性則4+2+1=7;
若要rw-屬性則4+2=6;
若要rx屬性則4+1=7。
範例:
chmod a=rwx file

chmod 777 file
效果相同
chmod ug=rwx,o=x file

chmod 771 file
效果相同
若用chmod 4755 filename可使此程序具有root的權限

出處:http://www.111cn.net/sys/linux/59979.htm

APACHE PHP關閉Shell Script 網站可能漏洞


ubuntu請至APACHE 更改以下位置的php.ini

第一步:
/etc/php5/apache2/php.ini

第二步:  (增加以下內容)
disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source


第三步: (關閉以下兩項目)
allow_url_fopen=Off
allow_url_include=Off

第四步: (重啟服務)
/etc/init.d/apache2 restart



出處:http://www.cyberciti.biz/faq/linux-unix-apache-lighttpd-phpini-disable-functions/