guys.
Here's my problem :
I have an executable which needs to create a folder in a particular emplacement in the system.
I'd like it to be able to do so no matter who execute it.
My idea was to give the parent folder (the one the executable needs to create folders in) to a user, and the executable to the same user. Then set the setuid bit on the executable. That way, the executable is executed with the rights of that user, thus it has the rights on the folder.
Here's the thing : the executable uses a shared library which is just beside it.
When I launch it without the setuid bit, everything works fine (well, except the creation of the folder, obviously, but the executable is launched).
When I launch it with the setuid bit, however, the system tells me it can't find the shared library, which has not been moved, obviously, and which have read and execute rights for everyone.
What's happening ? What am I missing ?
Thank you.