回覆列表
  • 1 # 橘子愛唱歌

    1.配置DNS # vi /etc/resolv.conf nameserver 192.168.2.30 nameserver 192.168.2.32 # vi /etc/host.conf # nslookup 192.168.2.32 DNS查詢 # net time SET 192.168.2.32 時間同步,客戶端以伺服器時間為準 2.samba 首先確保Linux系統中安裝了samba包,並用下述命令來檢查samba包的基礎庫支援,一般的RPM安裝都不會有問題。 # smbd -b | grep LDAP HAVE_LDAP_H HAVE_LDAP HAVE_LDAP_DOMAIN2HOSTLIST ... # smbd -b | grep KRB HAVE_KRB5_H HAVE_ADDRTYPE_IN_KRB5_ADDRESS HAVE_KRB5 ... # smbd -b | grep ADS WITH_ADS WITH_ADS # smbd -b | grep WINBIND WITH_WINBIND WITH_WINBIND 3.krb5配置 配置編輯/etc/krb5.conf,配置完成後,執行 # kinit [email protected] 4.Samba配置 編輯配置/etc/samba/smb.conf後,重啟samba服務 # service samba restart # net ads join -U [email protected] 加入域,這時需要輸入域管理員密碼 5.winbind配置 編輯/etc/nsswitch.conf,更改passwd和group為(files需視你linux系統配置NIS與否,如配置NIS,則為compat) passwd: files winbind group: files winbind 儲存後(重)啟動samba服務。(重)啟動winbind。 用 wbinfo -u檢索使用者,wbinfo -g檢索使用者組來測試winbind是否正常

  • 中秋節和大豐收的關聯?
  • 如何評價郭敬明在《演員請就位》受表揚落淚?