I have a simple script to run my VPN on login. The script is located in
/etc/profile.d/connectVPN.sh
#!/bin/bash
protonvpn c -f > /home/myUserName/Desktop/out.txt
The contents of the output file:
[!] The program was not executed as root.
[!] Please run as root.
ls -l /etc/profile.d/connectVPN.sh
-rwxr-xr-x 1 root root 59 Dec 23 15:22 /etc/profile.d/connectVPN.sh
The VPN does not start since the script is not being run as root. How do I fix this?