I want to run my eggdrop in a chroot-jail. For this reason I have set the suid-flag and start it from root.
But now it doesn't recognize the LD_LIBRARY_PATH variable anymore (it IS set for both user) and therefore doesn't find the tcl-library ( error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory ).
Starting it without suid works, but as user I can't execute chroot and as root I can't start eggdrop
How do I pass this environment variable to a suid'd file or let it find on another way (simply copying it into the eggdrop diretory doesn't work also)