2013-01-04 104 views
5

我在Mac OS X 10.7.5上運行Jenkins,並且每夜處理備份到Windows服務器上的SMB共享。我想作爲備份腳本的一部分自動掛載SMB驅動器,但在Jenkins內mount_smbfs失敗。我使用mount命令的形式爲:Jenkins調用mount_smbfs失敗,出現身份驗證錯誤

mount_smbfs "//WORKGROUP;user:[email protected]/share" /Users/user/share 

也能正常工作從終端命令行,但在詹金斯給我的錯誤:

mount_smbfs: server rejected the connection: Authentication error 

我已確保詹金斯運行命令與命令行上的用戶相同,並且PATH和其他環境變量中的差異沒有任何突出。

+0

support.apple.com/kb/HT1568上的相關蘋果信息不幸沒有指向bugreport和changerequest數據庫的指針(其中m像蘋果,三星和微軟這樣的壟斷者似乎找不到一個好主意)。希望Mac OS 10.9將會有更好的SAMBA實現。 –

回答

2

這還不是一個完整的答案 - 只是與診斷相關的信息列表。如果您發現任何適當的治療方法,請編輯此答案。

下面是一些有關蘋果支持文章:

和這些手冊頁

  • 的mount_smbfs人
  • 人smbut金正日
  • 人nsmb.conf

你可能想嘗試 smbutil查看 「/工作組;用戶名:密碼@服務器」

檢查服務器的庫存狀況。

的命令的mount_smbfs的-N選項是良好的自動登錄過程

-N  Do not ask for a password. At run time, mount_smbfs reads the 
      ~/Library/Preferences/nsmb.conf file for additional configuration parameters 
      and a password. If no password is found, mount_smbfs prompts for it. 

也有明文或加密密碼在解決一個問題:

+0

問題的根源在於蘋果試圖重新實現桑巴,並犯了不少錯誤:http://appleinsider.com/articles/11/03/23/inside_mac_os_x_10_7_lion_server_apple_replaces_samba_for_windows_networking_services –