Subject Re: [firebird-support] fb_lock_mgr running with wrong user ID
Author Brad Pepers
noctamid@... wrote:
> Hello,
>
> 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

See the "-r-sr-s---" for the fb_lock_mgr binary? This means it has the
setuid and setgid flags set (that the two "s"'s in the list) which means
that when the binary is run, it will always be run as the owner and
group of the file. The file is owned by root so thats why its running
as root. This setting over-rides anything that xinetd does so it
doesn't matter that "user = firebird" is set there.

I'm not sure why it was installed this way or if this is required or not
but this is why the lock manager is running as root.

--
Brad