Skip to content

Ubuntu 23.10 - Failed to execute program net.openvpn.v3.sessions: Permission denied #214

Closed
@Marietto2008

Description

@Marietto2008

Hello.

I cannot figure out how it's possible that I'm getting "permission denied" as root (and as a normal user) when I launch openvpn3 on Ubuntu 23.10 :

$ openvpn3 session-start --dco true --config vpn.aus.imthebestvpn.net.ovpn  

** ERROR ** 

Failed preparing proxy:
Error calling StartServiceByName for net.openvpn.v3.sessions:              
Failed to execute program net.openvpn.v3.sessions: Permission denied 

I'm using this version of openvpn3 :

OpenVPN3/Linux v21 (openvpn3) 
OpenVPN core v3.8.2 linux x86_64 64-bit 
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved. 

Something might be missing execute permission, but I cannot figure out from this error message what that might be. In any event, I followed the installation instructions exactly as written so I'm at a loss. Any suggestions on where to begin troubleshooting this ? Since this error is similar to this one :

#99

I will post the same informations that you asked on that post :

# cat /usr/share/dbus-1/system-services/net.openvpn.v3.configuration.service

[D-BUS Service]
Name=net.openvpn.v3.configuration
User=openvpn
Exec=/usr/libexec/openvpn3-linux/openvpn3-service-configmgr --state-dir "/var/lib/openvpn3/configs"
ls -ltr /usr/libexec/openvpn3-linux/openvpn3-service-configmgr
-rwxr-xr-x 1 root root 342600 ott  6 12:27 /usr/libexec/openvpn3-linux/openvpn3-service-configmgr
$ ls -ltr /usr/libexec/openvpn3-linux/

total 3404
-rwxr-xr-x 1 root root   12749 ott  6 12:27 openvpn3-systemd
-rwxr-xr-x 1 root root  326544 ott  6 12:27 openvpn3-service-sessionmgr
-rwxr-xr-x 1 root root  695288 ott  6 12:27 openvpn3-service-netcfg
-rwxr-xr-x 1 root root  326184 ott  6 12:27 openvpn3-service-logger
-rwxr-xr-x 1 root root  342600 ott  6 12:27 openvpn3-service-configmgr
-rwxr-xr-x 1 root root 1621528 ott  6 12:27 openvpn3-service-client
-rwxr-xr-x 1 root root  150024 ott  6 12:27 openvpn3-service-backendstart
$ /usr/libexec/openvpn3-linux/openvpn3-service-configmgr

OpenVPN3/Linux v21 (openvpn3-service-configmgr)
OpenVPN core v3.8.2 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
** ERROR ** Could not connect to net.openvpn.v3.log service
            Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.log: Failed to execute program net.openvpn.v3.log: Permission denied
sudo /usr/libexec/openvpn3-linux/openvpn3-service-configmgr

[sudo] password for ziomario: 
[INFO] Dropping root group privileges to openvpn
[INFO] Dropping root user privileges to openvpn
OpenVPN3/Linux v21 (openvpn3-service-configmgr)
OpenVPN core v3.8.2 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
** ERROR ** Could not connect to net.openvpn.v3.log service
            Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.log: Failed to execute program net.openvpn.v3.log: Permission denied
$ /usr/libexec/openvpn3-linux/openvpn3-service-logger --service --idle-exit 0 --state-dir /var/lib/openvpn3 --log-level 6

 Logger INFO: OpenVPN3/Linux v21 (openvpn3-service-logger)
OpenVPN core v3.8.2 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
 Logger INFO: Log method: StreamWriter
terminate called after throwing an instance of 'DBusException'
  what():  openvpn3-service-logger could not register 'net.openvpn.v3.log'
Aborted
$ sudo /usr/libexec/openvpn3-linux/openvpn3-service-logger --service --idle-exit 0 --state-dir /var/lib/openvpn3 --log-level 6
[INFO] Dropping root group privileges to openvpn
[INFO] Dropping root user privileges to openvpn
OpenVPN3/Linux v21 (openvpn3-service-logger)
OpenVPN core v3.8.2 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
Log method: journald

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions