LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   temp dir fails - no such file or directory (https://www.linuxquestions.org/questions/centos-111/temp-dir-fails-no-such-file-or-directory-4175559656/)

robertkwild 11-23-2015 09:47 AM

temp dir fails - no such file or directory
 
basically to reload the service

openvpn --config /etc/openvpn/server.conf

in my server.conf it looks like this -

remote xxxxxxxxxx

float

port 1194

dev tun

ifconfig 10.8.0.2 10.8.0.3

persist-tun

persist-local-ip

persist-remote-ip

comp-lzo

ping 15

secret /etc/openvpn/vpn.key

route 10.10.1.0 255.255.255.0

chroot /etc/openvpn/tmp

user nobody

group nobody

log /var/log/openvpn/vpn.log

verb 1

i have created a dir for the chroot -

mkdir /etc/openvpn/tmp

then i restart the service (like above) but i keep on getting an error message -

[root@openvpn /]# tail -f /var/log/openvpn/vpn.log

Options error: Temporary directory (--tmp-dir) fails with '/etc/openvpn/tmp//tmp': No such file or directory

Options error: Please correct these errors.

Use --help for more information.

robertkwild 11-23-2015 10:26 AM

success!!!

[root@openvpn /]# mkdir -p /etc/openvpn/tmp/tmp

[root@openvpn /]# mkdir -p /tmp/openvpn/tmp/tmp


All times are GMT -5. The time now is 11:16 AM.