Running Pycharm as root from launcher

后端 未结 6 2363
小鲜肉
小鲜肉 2021-02-19 07:04

How is it possible to run Pycharm from the launcher with root privileges?

I can do that from the terminal window, with sudo ./pycharm.sh, but I\'d like to d

6条回答
  •  时光说笑
    2021-02-19 07:32

    As of this post (June 28 2018) I am running Pycharm-2018.1.4 on Ubuntu 18.04 Bionic Beaver. The solution that worked for me was to simply edit the sudoers.d file and add the following to the last line:

    user host = (root) NOPASSWD: full_path_to_python

    for example:

    guya surface-pro = (root) NOPASSWD /usr/bin/python3.6

提交回复
热议问题