[CentOS] problems with OpenVPN 2.1.4 on Centos 5.5

Thu Jan 20 17:59:18 UTC 2011
Boris Epstein <borepstein at gmail.com>

On Thu, Jan 20, 2011 at 12:39 PM,  <m.roth at 5-cent.us> wrote:
> Boris Epstein wrote:
>> On Thu, Jan 20, 2011 at 12:03 PM, Joseph L. Casale
>> <jcasale at activenetwerx.com> wrote:
>>>>[root at gw5fl 2.0]# . ./vars
>>>>bash: /usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/whichopensslcnf:
>>>>Permission denied
>>>
>>> See that error above? Make that script executable... It's a bash script
>>> `vars` is calling and not able to execute.
>>
>> Thanks, did that though this did not fix my problem - I still get the
>> same error message.
>
> Two questions: first, what's the ownership of the file, and the directory,
> and second, is selinux enforcing?
>
>        mark
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Mark,

Thanks.

The SELinux is enforcing.

The easy-rsa directory/file permissions are as follows:

[root at gw5fl ~]# find /usr/share/doc/openvpn-2.1.4/easy-rsa/2.0 -exec
ls -ld {} \;
drwxr-xr-x 3 root root 4096 Jan 20 11:22
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0
-rwxr-xr-x 1 root root 165 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-key
-rwxr-xr-x 1 root root 354 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-dh
-rw-r--r-- 1 root root 920 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/revoke-full
-rw-r--r-- 1 root root 297 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/list-crl
-rw-r--r-- 1 root root 1459 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/inherit-inter
-rw-r--r-- 1 root root 9281 Oct 21 13:37
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/README
-rw-r--r-- 1 root root 389 Oct 21 13:37
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/Makefile
-rwxr-xr-x 1 root root 430 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/clean-all
-rwxr-xr-x 1 root root 215 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-req
-rw-r--r-- 1 root root 7768 Oct 21 13:37
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/openssl-0.9.6.cnf
-rwxr-xr-x 1 root root 251 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-key-pkcs12
-rwxr-xr-x 1 root root 270 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-key-server
drwx------ 2 root root 4096 Jan 20 11:22
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/keys
-rw-r--r-- 1 root root 0 Jan 20 11:22
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/keys/index.txt
-rw-r--r-- 1 root root 3 Jan 20 11:22
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/keys/serial
-rwxr-xr-x 1 root root 121 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-ca
-rw-r--r-- 1 root root 1696 Jan 20 10:46
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/vars
-rwxr-xr-x 1 root root 190 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-inter
-rw-r--r-- 1 root root 180 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/sign-req
-rwxr-xr-x 1 root root 12504 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/pkitool
-rwxr-xr-x 1 root root 160 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-req-pass
-rwxr-xr-x 1 root root 190 Oct 21 13:37
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/whichopensslcnf
-rw-r--r-- 1 root root 8328 Oct 21 13:37
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/openssl.cnf
-rwxr-xr-x 1 root root 159 Nov  4 15:29
/usr/share/doc/openvpn-2.1.4/easy-rsa/2.0/build-key-pass
[root at gw5fl ~]#

Boris.