OS: QNX 6.3.2 on x86.
I am successful in running resource manager as non-root.
- Compile the res mgr code as normal user
- Do a chown root:root on this executable as root
- Do a chmod a+s on this executable as root
- Now you can run this res mgr as a non-root
For doing the above steps, I have written a small program which will be run as root by a normal user. Sample program is attached.
It works fine for stand alone resource managers but doesn’t run cleanly for the resource managers that are dependant on user defined libraries.
This I am able to overcome by putting the user defined library under /lib or /usr/lib directories.
My requirement is to put the library in predefined path say /usr_lib on which everyone is given write access and then run their resource manager.
I tried all possible things that I could but failed to do so. Actually, in Linux there is file under /etc/ld.so.conf where we can put our extra library paths. But such kind of a thing is not present in QNX.
Any help in this regard is greatly appreciated.