Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
raven566
New Contributor

Cannot create profile in RHEL installation

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 5
AEK
SuperUser
SuperUser

Hello Raven

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

AEK
AEK
raven566
New Contributor

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

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

AEK
AEK
whirlwind
New Contributor

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

dippolito

Hi, 
did you manage to resolve this issue?

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors