gco / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

permission ownership #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try connect
2.
3.

What is the expected output?
1. tunnelblick needs to repair ownership permissions of the configuration file 
to secure it
I fill the form and click ok
2. ultraVpn not connecting tunnelblick could not change ownership and 
permission of the configuration file to secure it. see the console Log for 
details

Console : 

22/02/10 02:31:20   Tunnelblick[4785]   Configuration file 
/Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN.conf needs ownership/permissions 
repair
22/02/10 02:32:06   authexec[4886]  executing /usr/sbin/chown
22/02/10 02:32:07   authexec[4887]  executing /usr/sbin/chown
22/02/10 02:32:08   authexec[4888]  executing /usr/sbin/chown
22/02/10 02:32:09   authexec[4889]  executing /usr/sbin/chown
22/02/10 02:32:10   authexec[4890]  executing /usr/sbin/chown
22/02/10 02:32:10   Tunnelblick[4785]   Unable to change ownership of configuration 
file /Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN.conf from 502 to 0 in 5 attempts. 
OSStatus = @ld
22/02/10 02:32:10   Tunnelblick[4785]   Could not change ownership and/or 
permissions of configuration file 
/Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN.conf
22/02/10 02:33:13   Tunnelblick[4785]   Configuration file 
/Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN_stealthy connect.ovpn needs 
ownership/permissions repair
22/02/10 02:33:18   authexec[4913]  executing /usr/sbin/chown
22/02/10 02:33:19   authexec[4914]  executing /usr/sbin/chown
22/02/10 02:33:20   authexec[4915]  executing /usr/sbin/chown
22/02/10 02:33:21   authexec[4916]  executing /usr/sbin/chown
22/02/10 02:33:22   authexec[4917]  executing /usr/sbin/chown
22/02/10 02:33:22   Tunnelblick[4785]   Unable to change ownership of configuration 
file /Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN_stealthy connect.ovpn from 502 to 0 
in 5 attempts. OSStatus = @ld
22/02/10 02:33:22   Tunnelblick[4785]   Could not change ownership and/or 
permissions of configuration file 
/Volumes/Users/michaelsilvestre/Library/Application 
Support/Tunnelblick/Configurations/UltraVPN_stealthy connect.ovpn

What do you see instead?

What version of Tunnelblick are you using? On what version of OS X? PPC or
Intel?

tunnelblick 3.0b26 build 1395
OSX 10.6.2

Please provide any additional information below. It is often helpful to
include your configuration file and the contents of the OpenVPN Log window,
but remember to remove any sensitive information such as IP addresses.

Original issue reported on code.google.com by michael....@gmail.com on 22 Feb 2010 at 1:38

GoogleCodeExporter commented 9 years ago
It appears that the configuration file is not on a volume which allows you to 
set ownership of a file to 
root:wheel. That would be the case, for example, for a remote volume, or a 
volume not formatted as "Mac OS 
Extended" (although some other formats are OK).

Try "Use Shadow Copies of Configuration Files" in the Options menu. That will 
tell Tunnelblick to maintain a 
copy of the configuration file on your boot drive and protect and use that 
copy. This should be done 
automatically for configuration files on remote volumes, so if the file is on a 
remote volume, please let me 
know because if Tunnelblick isn't detecting that situation I'd like to fix it 
so it detects it properly. If the config 
file is not remote (for example, is on an external drive, or even a non-boot 
internal drive), you must specify 
the "Use Shadow Copies..." option.

Please let us know if that works out.

Original comment by jkbull...@gmail.com on 22 Feb 2010 at 1:49

GoogleCodeExporter commented 9 years ago
my volume is formatted in hpfs and my user volume is on different disk than root
/Users/userfolder -> /Volume/users/userfolder
both formatted in hpfs of course

Effectively when I try to change owner in terminal I stay the owner!
sudo chown root:wheel ~/Library/openvpn/*
ls ~/Library/openvpn/
-rw-r--r--@ 1 username  staff   593 28 sep 22:18 UltraVPN.conf
-rw-r--r--@ 1 username  staff  1220  8 jan  2007 UltraVPN.crt
-rw-r--r--  1 username  staff   458 28 sep 22:19 UltraVPN_stealthy connect.ovpn

I try shadow copies and that work fine, thanks

Original comment by michael....@gmail.com on 22 Feb 2010 at 3:37

GoogleCodeExporter commented 9 years ago
Glad it's working.

Original comment by jkbull...@gmail.com on 22 Feb 2010 at 4:06