If I will call a shell script from the inittab (which will call the command which will start the lsnr process) on this way :
/etc/inittab:
su::once:/usr/sbin/<su.sh> ---> calling <su.sh> from /etc/inittab
<su.sh> , will contain this line :
su - <user> -c <'cmd'> ----> where cmd is the actuall command to start lsnr
It is a good solution BUT ,
It will work only if the user which runs the command would be root
(Because that user can 'su' without password).
Does the commands\scripts that we call through the /etc/inittab file always run under 'root' user ?
If yes then it kinda solve my problem ...
Does anybody know :) ?
Thanks in advance,
Oren :)