Root access for Jupyter/iPython Notebook

前端 未结 8 1190
遇见更好的自我
遇见更好的自我 2021-02-07 13:50

I\'m trying to use the bash kernel in iPython/Jupyter notebook, but I need sudo access within the notebook itself.

I\'ve tried $ sudo jupyter notebook to ru

8条回答
  •  不思量自难忘°
    2021-02-07 14:07

    When I need to execute command as root in my notebook, I use the -A flag, that allows to access an helper program used to read the user's password when no terminal is available. You need to modify the sudo.conf file before to declare the helper program. On a Debian Buster, I personnaly added:

    Path askpass: /usr/libexec/seahorse/ssh-askpass

    See the main page of sudo.conf for more information.

提交回复
热议问题