docker中普通使用者用tab鍵補全檔案名時,出現cannot create temp file for here-document Permission denied
- 需要執行:sudo chmod -R 1777 /tmp
又出現sudo權限問題,/usr/bin/sudo must be owned by uid 0 and have the setuid bit set
- 需要在root使用者下執行下面兩條指令
- chown root:root /usr/bin/sudo
- chmod 4755 /usr/bin/sudo
Cannot mkdir: Permission denied
- 此限制需要修改其上級目錄的權限
- sudo chmod 777 /usr/local/cnngen/
最後:
修改所有者:sudo chown -R docker:docker cv2x_cnngen_samples_1.0_20201208.tar.xz
修改讀寫權限:sudo chmod -R 777 cv2x_cnngen_samples_1.0_20201208.tar.xz
重新解壓:tar -xvJf cv2x_cnngen_samples_1.0_20201208.tar.xz