user2779477
user2779477

Reputation: 21

How do I edit conf file when being used by Firebird service?

I'm playing around with Firebird and just installed the latest version (2.5) for Windows 7 (64 bit).

I have it running as a service rather than stand-alone application.

I'm wanting to alter aliases.conf and add an alias for a database, but I can't seem to alter the file. (When trying to save in Notepad++, I get a pop-up that says "Please check if this file is opened in another program.") My suspicion is that it's locked due to the Firebird service.

I opened Services from the Windows Task Manager (Services tab, then clicked "Services..." on bottom-right), selected "Firebird Guardian" (which, as I understand, manages the Firebird Services), selected "Stop Service", verified that both services have stopped, but I'm still unable to alter the configuration file.

Recommendations?

Many thanks, Jody

Upvotes: 1

Views: 1373

Answers (1)

Mark Rotteveel
Mark Rotteveel

Reputation: 109090

Files in Program Files are under UAC protection, meaning you require administrator elevation to edit them. There are two ways to edit your files:

  1. Start your editor as administrator (context menu, Run as administrator), then edit the file
  2. Copy the file from Program Files to your documents folder, edit it and then copy it back

Upvotes: 1

Related Questions