You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation script of linux classic server creates isc_monitor1 file with the root owner and group. (user that runs installation procedure).
As a result, server cannot access this file, hence monitoring capabilities does not work.
This code from http://postinstall.sh.in creates and assings correct (firebird) owner on sc_init1 isc_lock1 isc_event1 files:
for i in isc\_init1 isc\_lock1 isc\_event1
do
FileName=$i\.\`hostname\`
touch $FileName
done
#⁠ Create log
touch firebird\.log
#⁠ Update ownership and SUID bits for programs\.
chown \-R $RunUser:$RunUser $FBRootDir
for i in isc\_init1 isc\_lock1 isc\_event1 isc\_monitor1
do
FileName=$i\.\`hostname\`
touch $FileName
chmod ug=rw,o= $FileName
done
This code is not correct as it does not change owner of touched isc_* files.
IMHO there should be only one place in code that creates all of isc_* files and assigns correct permissions to them.
The text was updated successfully, but these errors were encountered:
Submitted by: Yakov Hrebtov (jake)
Installation script of linux classic server creates isc_monitor1 file with the root owner and group. (user that runs installation procedure).
As a result, server cannot access this file, hence monitoring capabilities does not work.
The bug is caused by code in linux/classic/postinstall.sh.in and http://classiclibrary.sh.in.
This code from http://postinstall.sh.in creates and assings correct (firebird) owner on sc_init1 isc_lock1 isc_event1 files:
isc_monitor1 file is created next by code in function fixFilePermissions from http://classiclibrary.sh.in
This code is not correct as it does not change owner of touched isc_* files.
IMHO there should be only one place in code that creates all of isc_* files and assigns correct permissions to them.
The text was updated successfully, but these errors were encountered: