Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 10th, 2005, 05:06 PM
tim snl's Avatar
tim snl tim snl is offline
Code Cruncher
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Tasmania, Australia
Posts: 119 tim snl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 21 m 20 sec
Reputation Power: 8
Question How to change SYSDBA password automatically on installation?

I have a windows application using Firebird 1.5 and I need to automate the install procedure more.

How can I automatically set the SYSDBA password to what I need after installing Firebird?

I also need to create 2 users on the srever and grant them read/write/execute premission ot all tables and procedures in my database file.

What is the best way to automate this as part of the end user installation?
__________________
Beware of a programmer with a screwdriver!

Reply With Quote
  #2  
Old January 11th, 2005, 12:50 PM
ipaw ipaw is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: NS Canada
Posts: 20 ipaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 35 m 37 sec
Reputation Power: 0
Why not distribute the security.fdb with all the settings (if the client does not already have another Firebird app installed).

Reply With Quote
  #3  
Old January 12th, 2005, 03:04 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 32 m 11 sec
Reputation Power: 8
Tell your install program to execute following AFTER firebird is installed and is running:

Change to the directory where the command-line tools for the Firebird Database Server are located. (On Windows this will be c:\Program Files\Firebird\Firebird_1_5\bin. On Linux this directory is /opt/firebird/bin)
Execute the following (case-sensitive):
gsec -user sysdba -password masterkey

It will start shell prompt for the gsec utility: (you have to send programatically command to this utility, cannot remember correct way right now, investigate a little)

Enter the following command to change the password:
GSEC> modify sysdba -pw newpassword
Where newpassword is the 6-8 character new password you chose.


That's it.


--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net

FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
JEDI VCS contributor
http://jedivcs.sourceforge.net/

Reply With Quote
  #4  
Old January 12th, 2005, 07:13 PM
tim snl's Avatar
tim snl tim snl is offline
Code Cruncher
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Tasmania, Australia
Posts: 119 tim snl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 21 m 20 sec
Reputation Power: 8
Quote:
Originally Posted by ipaw
Why not distribute the security.fdb with all the settings (if the client does not already have another Firebird app installed).
This sounds like a good idea
How do I determine the path to this file on the clients system?

Reply With Quote
  #5  
Old January 13th, 2005, 09:23 PM
tim snl's Avatar
tim snl tim snl is offline
Code Cruncher
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Tasmania, Australia
Posts: 119 tim snl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 21 m 20 sec
Reputation Power: 8
I am dealing with Firebird on Windows98 and above. There must be some way to detect the Firebird root installation directory. Is there something in the registry I can use? Is there some way I can look at the running server and work it out?
Please help me out with some suggestions, I am stuck

Reply With Quote
  #6  
Old January 15th, 2005, 02:45 AM
SilverDB's Avatar
SilverDB SilverDB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Romania
Posts: 173 SilverDB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
Send a message via Yahoo to SilverDB
I have FireBird 1.5 installed and this is where the root directory is stored to my registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Firebird Project\Firebird Server\Instances >> DefaultInstance

Reply With Quote
  #7  
Old January 16th, 2005, 05:05 PM
tim snl's Avatar
tim snl tim snl is offline
Code Cruncher
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Tasmania, Australia
Posts: 119 tim snl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 21 m 20 sec
Reputation Power: 8
Thumbs up

Quote:
Originally Posted by SilverDB
HKEY_LOCAL_MACHINE\SOFTWARE\Firebird Project\Firebird Server\Instances >> DefaultInstance
I have checked this on all the machines I have runnung and it looks like a good place to find the firebird root path. Thankyou everyone for helping me

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > How to change SYSDBA password automatically on installation?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT