Subject | Re: [firebird-support] fb_lock_mgr running with wrong user ID |
---|---|
Author | Mikalai Arapau |
Post date | 2007-10-02T23:14:01Z |
Hello noctamid,
Are database files are really created as root?
I beleive that databases are created by fb_inet_server, not by
fb_lock_mgr. Try to run ./isql then CREATE DATABASE 'filename' USER
'...' PASSWORD '...';
and then:
$ ps axu | grep fb
You should see:
firebird ... ... fb_inet_server
Since your xinet.d record says to start fb_inet_server as firebird (not
fb_lock_mgr).
--
Best regards,
Mikalai mailto:swrus@...
Wednesday, October 3, 2007, 3:54:00 AM, you wrote:
Are database files are really created as root?
I beleive that databases are created by fb_inet_server, not by
fb_lock_mgr. Try to run ./isql then CREATE DATABASE 'filename' USER
'...' PASSWORD '...';
and then:
$ ps axu | grep fb
You should see:
firebird ... ... fb_inet_server
Since your xinet.d record says to start fb_inet_server as firebird (not
fb_lock_mgr).
--
Best regards,
Mikalai mailto:swrus@...
Wednesday, October 3, 2007, 3:54:00 AM, you wrote:
> why is fb_lock_mgr running with root user id? It should run under firebird ID:
> ls -l /usr/local/firebird/bin
> -r-xr-x--- 1 firebird firebird 5120 Oct 3 01:22 fb_inet_server
> -r-sr-s--- 1 root firebird 258856 Oct 3 01:22 fb_lock_mgr
> cat /etc/xinetd.d/firebird
> service gds_db
> {
> disable = no
> flags = REUSE
> socket_type = stream
> wait = no
> user = firebird
> server = /usr/local/firebird/bin/fb_inet_server
> }
> ps axu |grep fb
> root 24673 0.0 0.0 10140 1436 ? S 02:36 0:00
> /usr/local/firebird/bin/fb_lock_mgr
> So fb_lock_mgr is always running with root ID and it creates
> databases as root. Where is the fault? Why is it
> not running with firebird user ID?
> FirebirdCS-2.0.3.12981-1.amd64.tar.gz on Gentoo
> Thank you very much for help
> Nils