so I’ve bypassed using proot, but now I’m getting:
exec /opt/cfx-server/FXServer +set citizen_dir /opt/cfx-server/citizen/
-bash: /opt/cfx-server/FXServer: /lib/ld-musl-x86_64.so.1: bad ELF interpreter: No such file or directory
-bash: /opt/cfx-server/FXServer: Success
neither is the information you provided for your issue, it’s probably your linux kernel denying something that should work perfectly fine according to the ABI.
are you using some kind of creepy patchset like grsec?
What information is needed? If the kernel was denying nproc calls, wouldn’t those appear in either dmesg or /var/log/messages? Neither show anything. No, I’m not using grsec, and SELinux is disabled.
The problem seems to be from the fact that proot tries to create and execute files from inside /tmp, so if you have it mounted as noexec it will give you the Permission denied error.
To fix it, mount /tmp with exec option: