Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

在 Linux 上的 SQL Server 2019 中,外部附屬程式腳本(例如 R、Python)是 無法存取其工作目錄以外的任何目錄。

解決方案

此問題已在下列 SQL Server 累積更新中修正:

關於 SQL Server 的累積更新:

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 查看 SQL Server 的最新累計更新:

其他相關資訊

您可以自訂外部程式可存取的目錄 使用 [ mssql 會議 ] 工具來設定或取消設定 [datadirectories] 設定 /var/opt/mssql/mssql.conf 設定檔的 [擴充性] 區段。

" 設定的值是將會公開的分號分隔目錄清單 附屬腳本。 Microsoft SQL Server 快速啟動守護程式必須是 當您設定或取消設定此設定時,就會重新開機。

附屬程式執行方式 mssql_satellite 特殊使用者,因此它們會繼承相同的讀/寫/執行許可權給 此設定中指定給這個特殊使用者的目錄。

範例:

#/bin/bash: /opt/mssql/bin/mssql-conf 設定擴充性。 datadirectories "/opt/mssql/bin:/home/user/rscripts"

語句 必須重新開機伺服器擴充性快速啟動守護程式,才能套用 此設定。 請執行「systemctl 重新開機 mssql-launchpadd」。

/Var/opt/mssql/mssql.conf 的內容

延伸

datadirectories =/opt/mssql/bin:/var

#/bin/bash: /opt/mssql/bin/mssql-conf [未設成擴充性]。 datadirectories

語句 必須重新開機伺服器擴充性快速啟動守護程式,才能套用 此設定。 請執行

'systemctl 重新開機 mssql-launchpadd. 服務」。

目錄 /var/opt/mssql/mssql.conf

延伸

狀態

這是預設設計為 如此一來,外部處理常式就無法隨機存取任何系統目錄。

參考

了解 Microsoft 用來說明軟體更新的術語

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×