[問題] Linux ssh chroot jail 執行程式問題

看板Linux作者 (captain)時間10年前 (2015/11/25 17:18), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
我利用ubuntu 14.04架了一個 Server,並將ssh登入的使用者設定ssh chroot jail,因 為這台Server有使用R語言的運算需求,因此我將/usr/bin/R還有/usr/lib /usr/local/lib都複製到jail的目錄裡。問題來了,當使用者登入執行之後,就會變成這 樣: /usr/lib/R/bin/exec/R: error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory 很明顯的,是抓不到shared library,但是這裡該如何處理呢? 徵求各位Linux高手們解答,謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 103.226.213.197 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1448443110.A.36B.html

11/25 18:51, , 1F
要在該 chroot 環境內執行 ldconfig 更新 library 的
11/25 18:51, 1F

11/25 21:58, , 2F
我在chroot環境下執行ldconfig,ldconfig擁有者為root
11/25 21:58, 2F

11/25 21:58, , 3F
設了SUID之後還是Permission denied
11/25 21:58, 3F
文章代碼(AID): #1MLNpcDh (Linux)
文章代碼(AID): #1MLNpcDh (Linux)