xingplus / tunnelblick

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

Can't save configuration file from TextEdit #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open 'Details...' in Tunnelbrick menu
2. Click "Edit Configuration"
3. Modify and save file in the editor

What is the expected output? What do you see instead?

Configuration file is protected, the editor should fire a login/password box.
TextEdit is should displaying an alert to tell you the file is protected.
Editing the file inside TextMate allow you to login as an administrator.
Would it be possible to open the configuration file with a terminal editor,
or TextMate if available on the system

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

Tunnelblick: OS X 10.5.8; Tunnelblick 3 (3.0b24 build 1301); OpenVPN 2
(2.1_rc20)

Original issue reported on code.google.com by alx.gir...@gmail.com on 21 Dec 2009 at 11:41

GoogleCodeExporter commented 9 years ago
This isn't exactly a Tunnelblick problem (that SimpleText on Tiger and Leopard 
doesn't work properly with files owned 
by root), but I have made changes in the source as r324 to work around that 
problem.

Of course, you may open the configuration file in any text editor; it is a 
plain text file.

From the commit note for r324:
(1) Fixes bug opening wrong copy of sample configuration file in TextEdit.
...
(5) Fixes problem editing configuration files on Tiger and Leopard by allowing
user (without an administrator username/password) to take ownership of the
configuration file before invoking TextEdit. This ability can be disabled with
the 'onlyAdminsCanUnprotectConfigurationFiles' preference (which may be forced).
On Leopard, warns user that an administrator username/password will be required
to connect if the configuration file is modified. Note: The 'Edit Configuration'
button may be still disabled with a per-configuration  preference (which may be
forced).

Original comment by jkbull...@gmail.com on 17 Jan 2010 at 9:54

GoogleCodeExporter commented 9 years ago
That's fantastic, thanks a lot :)

Original comment by alx.gir...@gmail.com on 17 Jan 2010 at 9:57