close
設定Mac OSX 10.5的xgrid後,使用者會發現,雖然能submit job給xgrid,但是卻無法讓xgrid讀取本機上的資料,這是因為OSX 10.5對於安全性的要求又更加嚴格了,不允許外部隨意讀取本機資料。
如要開放資料夾供xgrid讀取的話,你必須鍵入以下的指令,編輯xgridagentd_task_nobody.sb
> sudo vi /usr/share/sandbox/xgridagentd_task_nobody.sb
 
該檔案之內容如下:
========================================================================================

;;

;; _xgridtask_nobody - sandbox profile

;; Copyright (c) 2006-2007 Apple Inc.  All Rights reserved.

;;

;; WARNING: The sandbox rules in this file currently constitute

;; Apple System Private Interface and are subject to change at any time and

;; without notice. The contents of this file are also auto-generated and not

;; user editable; it may be overwritten at any time.

;;

(version 1)

 

(debug deny)

 

(deny default)

 

(allow process* sysctl* mach* network*)

(allow signal (target pgrp))

 

(allow file-read* (regex "^/(bin|dev|(private/)?(etc|tmp|var)|usr|System|Library)(/|$)"))

(allow file-read* file-write* (regex "^/(private/)?(tmp|var)(/|$)"))


=============================================================================


你只需在 (allow file-read* (regex "^/(bin|dev|(private/)?(etc|tmp|var)|usr|System

arrow
arrow
    全站熱搜

    bioinfo 發表在 痞客邦 留言(0) 人氣()