![Snap 应用程序 Heroku 放弃权限不起作用](https://linux22.com/image/1161436/Snap%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%20Heroku%20%E6%94%BE%E5%BC%83%E6%9D%83%E9%99%90%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
通过 snap 安装后执行命令时heroku
,会引发错误dropping privs did not work
:
cesar@pc:~$ heroku --version
dropping privs did not work
但如果我执行sudo heroku
命令运行:
cesar@pc:~$ sudo heroku --version
▸ heroku-cli: update available from 6.16.4 to 6.99.0-ec9edad
heroku-cli/6.16.4 (linux-x86) node-v9.9.0
附加信息:
cesar@pc:~$ snap version
snap 2.36.1
snapd 2.36.1
series 16
ubuntu 16.04
kernel 4.4.0-139-generic`
cesar@pc:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.36.1 5900 stable canonical✓ core
heroku v6.16.4+git2.3916a9e-dirty 1613 stable heroku✓ classic
Linux version 4.4.0-139-generic (buildd@lgw01-amd64-031) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10) ) #165-Ubuntu SMP Wed Oct 24 10:55:26 UTC 2018