longzuyuan / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

Log file "Permission Denied" #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Enter a line in .ovpn to create a log file, eg:
       log /storage/sdcard0/2openvpn/openvpn.log
    or
        log /sdcard0/2openvpn/openvpn.log

What is the expected output? What do you see instead?
    Expected output is a log file in the specified dir, as happens under Lx.
    Actual output is an error message in the on-screen log file:
        warning Error redirecting stdout/stderr to --log file: /sdcard/2openvpn/openvpn.log: Permission Denied (errno = 13)
What mobile phone are you using?
    Galaxy nexus
Which Android Version and stock ROM or aftermarket like cyanogenmod?
    4.1.1.  Standard yakju, rooted but no mods.  
Please provide any additional information below.

Original issue reported on code.google.com by mfcoorey@gmail.com on 22 Aug 2012 at 11:54

GoogleCodeExporter commented 9 years ago
The OpenVPN for Android has not the permission to write on the SD Card. Using 
log /data/data/de.blinkt.openvpn/cache/openvpn.log will work but you need root 
to access it.

Original comment by arne@rfc2549.org on 22 Aug 2012 at 12:06

GoogleCodeExporter commented 9 years ago
The OpenVPN for Android has not the permission to write on the SD Card. Using 
log /data/data/de.blinkt.openvpn/cache/openvpn.log will work but you need root 
to access it.

Original comment by arne@rfc2549.org on 22 Aug 2012 at 12:07

GoogleCodeExporter commented 9 years ago
ok, understand.  (I still don't grok android permissions). Thanks.

Original comment by mfcoorey@gmail.com on 22 Aug 2012 at 12:26