[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Problem to read the file referenced by crl-verify


  • Subject: Re: [Openvpn-users] Problem to read the file referenced by crl-verify
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Mon, 4 Oct 2004 09:57:30 -0600 (MDT)

On Mon, 4 Oct 2004, Luc Stepniewski wrote:

> When launching OpenVPN (server mode) with the "--daemon" option, I get the 
> following error in the logs:
> 
> GID set to nogroup
> UID set to nobody
> CRL: cannot read: my-openvpn-keys/crl.pem: No such file or directory (errno=2)
> 
> The file exists and has 777 rights, and the directory where it resides is 777 
> too.
> If I trace with 'strace -eopen', I get the following result:
> 
> open("my-openvpn-keys/crl.pem", O_RDONLY) = -1 EACCES (Permission denied)
> 
> The strange thing is that it works if I don't use the --daemon option. So I 
> tried with an absolute path to the crl.pem file, and it worked!
> 
> My conclusion is that when launching OpenVPN with "--daemon" mode, the rights 
> are dropped to nobody:nogroup AND the directory is changed to something else 
> than the one whereOpenVPN was launched, so relative references don't work 
> anymore.

You can use relative paths with --daemon, but you need to put a --cd 
option at the top of your config file to define the default directory from 
which the relative paths will be resolved.

James


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users