Skip to main content
raven566
New Member
January 31, 2024
Question

Cannot create profile in RHEL installation

  • January 31, 2024
  • 5 replies
  • 4657 views

Hello all,

 

I am running Forticlient 7.2.2.0753 on RHEL 8. I have successfully installed it using the RPM but when I try to create a new profile, I get the error below. I have installed it as root (which is required) and am running this command as a different user as root is not allowed. This seems to be a permission error but there is no information to see where it is trying to write to, and my user has full access to its home directory. Does anyone know what might be wrong?

 

$ /opt/forticlient/fortivpn edit "CLI VPN"
Failed to set up FortiClient directories.

 

5 replies

AEK
SuperUser
SuperUser
January 31, 2024

Hello Raven

Try use strace to check what the command is trying to create.

AEK
raven566
raven566Author
New Member
January 31, 2024

Thank you for the reply. I am somewhat familiar with strace but do not see anything of interest from it. Do you know what else I might try or what folders it is trying to create?

 

$ strace -f -e trace=write /opt/forticlient/fortivpn edit "CLI VPN"
write(2, "Failed to set up FortiClient dir"..., 43Failed to set up FortiClient directories.

) = 43

 

AEK
SuperUser
SuperUser
January 31, 2024

Try remove the write filter in your command to display all sys calls.

AEK
whirlwind
New Member
July 22, 2024

Hi, I found the same bugs. I tested the forticlient (forticlient_vpn_7.4.0.1636_amd64.deb) on Debian 12 and Ubuntu 22.04.

 

The forticlient command requires a non-root user to execute it. But it is not privileged to write /run/user/0/forticlient/fortivpn.pid.

 

Temporarily, I just roughly executed "chmod 777 /run/user/0 -R," and then the bug was fixed.

 

I recommend that the PID file be stored in /tmp, or allow the root user to configure and connect a VPN.

 

Weixin Image_20240723002222.png

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!