![OpenVPN3:以 root 身份调用 StartServiceByName 时出错...权限被拒绝...?](https://linux22.com/image/15616/OpenVPN3%EF%BC%9A%E4%BB%A5%20root%20%E8%BA%AB%E4%BB%BD%E8%B0%83%E7%94%A8%20StartServiceByName%20%E6%97%B6%E5%87%BA%E9%94%99...%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D...%EF%BC%9F.png)
我不明白我怎么可能以 root 身份获得“权限被拒绝”。有些东西可能缺少执行权限,但我无法从该错误消息中找出可能是什么。无论如何,我完全按照所写的安装说明进行操作,所以我不知所措。关于从哪里开始解决此问题有什么建议吗?
root@bigboi:/home/andrew# apt install openvpn3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
openvpn3
0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.
Need to get 1,447 kB of archives.
After this operation, 6,779 kB of additional disk space will be used.
Get:1 https://swupdate.openvpn.net/community/openvpn3/repos focal/main amd64 openvpn3 amd64 13~beta-1+focal [1,447 kB]
Fetched 1,447 kB in 19s (77.6 kB/s)
Selecting previously unselected package openvpn3.
(Reading database ... 170788 files and directories currently installed.)
Preparing to unpack .../openvpn3_13~beta-1+focal_amd64.deb ...
Unpacking openvpn3 (13~beta-1+focal) ...
Setting up openvpn3 (13~beta-1+focal) ...
openvpn3-autoload.service is a disabled or a static unit, not starting it.
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for man-db (2.9.1-1) ...
root@bigboi:/home/andrew# openvpn3 session-start --config /home/andrew/.vpn/client.ovpn
** ERROR ** Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.sessions: Failed to execute program net.openvpn.v3.sessions: Permission denied
版本信息:
$ sudo openvpn3 version
OpenVPN 3/Linux v13_beta (openvpn3)
OpenVPN core 3.git:HEAD:ce0c9963 linux x86_64 64-bit
Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.