Subject | Re: [firebird-support] How to start Firebird server, and how to connect (on Linux)? |
---|---|
Author | Milan Babuskov |
Post date | 2006-08-02T19:00:14Z |
that.SelectedDude wrote:
localhost:/opt/firebird/example/employee.fdb
You are still a local user, and not "firebird" or "root". In this case,
SYSDBA username/password is ignored.
(although I doubt that has any effect on the problem).
fb_inet_server. If you don't say "localhost:" there is no way for it to
assume identity of another user (unless you prehaps set the setuid bit
on isql (chmod +s), but I urge you not to).
I'm not sure what you mean by "SQL Server". Only "SQL Server" I know of
is Microsoft product and doesn't run on Linux. Privilege system is
somewhat different on Windows.
iptables -t filter --list
Sorry about that.
You only got your "grep" command here. Start the (x)inetd and that
should do it:
/etc/init.d/inetd start
or
/etc/init.d/xinetd start
or maybe:
service xinetd start
I don't recall how exactly is it done on Ubuntu.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org
> 1. A normal Linux user cannot connect to the databaseThat is expected.
> # Try to connect to the database as SYSDBA:No wonder. You need to use:
> ##### unexpected: #####
> SQL> connect /opt/firebird/examples/employee.fdb user 'sysdba' password
> 'xxxxx';
> Statement failed, SQLCODE = -902
>
> operating system directive open failed
> -Permission denied
localhost:/opt/firebird/example/employee.fdb
You are still a local user, and not "firebird" or "root". In this case,
SYSDBA username/password is ignored.
> User robert is in the firebird group (I've added him manually):You need to log out and log back in for group changes to take effect
> robert@ubuntu:~$ groups robert
> robert : robert adm dialout cdrom floppy audio dip video plugdev lpadmin
> scanner admin firebird
(although I doubt that has any effect on the problem).
> And, why can't one connect using the database user in the connectionIf you say "localhost:" it connects to port 3050, and (x)inetd starts
> statement? Should'nt FireBird change the process's identity to firebird
> in that case (as it would be with SQL Server, I believe)?
fb_inet_server. If you don't say "localhost:" there is no way for it to
assume identity of another user (unless you prehaps set the setuid bit
on isql (chmod +s), but I urge you not to).
I'm not sure what you mean by "SQL Server". Only "SQL Server" I know of
is Microsoft product and doesn't run on Linux. Privilege system is
somewhat different on Windows.
> robert@ubuntu:~$ sudo iptables -t nat --listThis should have been:
iptables -t filter --list
Sorry about that.
> Port 3050 is not open.NO, it isn't !!!
> inetd appears to be running:
> robert@ubuntu:~$ ps ax | grep inetd
> 10015 pts/18 S+ 0:00 grep inetd
You only got your "grep" command here. Start the (x)inetd and that
should do it:
/etc/init.d/inetd start
or
/etc/init.d/xinetd start
or maybe:
service xinetd start
I don't recall how exactly is it done on Ubuntu.
--
Milan Babuskov
http://swoes.blogspot.com/
http://www.flamerobin.org