I've got openvpn working mostly fine on a pi running Raspbian but I've got some issues when the route-up/down scripts are run as root. I'm looking to run my route-up and down scripts as a specific user instead, is this possible?
The issue I'm having is that when the scripts run I keep getting issues with user limits, e.g:
unable to execute [process]: Resource temporarily unavailable
I've tried to increase the process limit for all users, as this looks like the issue below but it doesn't seem to have any effect. If anyone has any ideas how to increase these limits too I'm open to that option instead, although I've tried a few things.
Changing my route-up script to:
Will log the following:
Code: Select all
#!/bin/sh id ulimit -a
Thanksuid=0(root) gid=0(root) groups=0(root)
locked memory(kbytes) 64