2017年4月29日 星期六

Win7, Win8.1 Login to Samba


將下面這段文字用Notepad保存為 samba_7_2008_fix.reg 的注冊表文件:

Windows Registry Editor Version 5.00 


[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]
"DomainCompatibilityMode"=dword:00000001
"DNSNameResolutionRequired"=dword:00000000

用Administartor(管理者)身份執行輸入到注冊表, 重新開機.
-------------------------------------------------------------------------------------------------
Windows7 如果出現下面這個錯誤:

Changing the Primary Domain DNS name of this computer to "---" failed. The name will remain "...". The error was:

The specified domain either does not exist or could not be contacted

可以不理或者下載MS的 KB271571 修正
 ----------------------------------------------------------------------------------------------
Windows8.1 如果出現下面這個錯誤:

Error code 0x80090345 launching Windows Credential Manager

與前面一樣的將下面這段文字用Notepad保存 samba_8_2012_fix.reg 注冊表文件:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb] 

"ProtectionPolicy"=dword:00000001


用Administartor(管理者)身份執行輸入到注冊表, 重新開機.
---------------------------------------------------------------------------------------------------

另外,如果注冊表內 "RequireSignOrSeal" 及 " RequireStrongKey"曾經修改就必需清理, 與前面一樣, 將下面這段文字用Notepad保存為  "reset_RequireSignOrSeal_RequireStrongKey.reg " 注冊表文件:

Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\System\CCS\Services\Netlogon\Parameters]

"RequireSignOrSeal"=dword:00000001 
"RequireStrongKey"=dword:00000001

用Administartor(管理者)身份執行輸入到注冊表, 重新開機.
--------------------------------------------------------------------------------------------------

用 testparm 查閱 smb.conf 的語法設定正確性

在啟動 samba 之前,要瞭解到 smb.conf 裡面語法是否正確,檢驗的方式使用 testparm 這個指令即可。

如果要瞭解 samba 的所有設定 (包括沒有在 smb.conf 裡頭設定的預設值),可以使用 testparm -v 來作詳細的輸出
--------------------------------------------------------------------------------------------------
似乎增加機器的a/c還是必需的

# useradd -g machines -d /dev/null -c "machine id" -s /bin/false 機器帳號$

-------------------------------------------------------------------------------------------------

Reference Link : Samba Wiki

沒有留言:

張貼留言

 YUM ( or DNF) upgrade PHP  listed running PHP version yum list installed |grep PHP Remove the old version yum remove php* Then install the ...