From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221769.tru64-unix-managers.marc@archive.invalid> From: "Eubank, Chris" Date: Wed, 19 Dec 2001 17:20:16 +0000 To: tru64-unix-managers Subject: SUMMARY: setuid doesn't recognize LD_LIBRARY_PATH X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221769 OK so I must be one of the millions who have discovered this, and I received answers honestly from all over the world. Impressive!! The basic consensus was that it's a security hole, so you can't do that. A workaround is to create a static binary. Another is to link with -rpath. Thanks to Bob, Lucien, Joe, James, Chris, various sysadmins, Dr. Blinn, David, Stan, and Allan! Good thing I asked, otherwise I might have gone and broken my security !! Chris -----Original Message----- From: Eubank, Chris Sent: Tuesday, December 18, 2001 1:44 PM To: 'tru64-unix-managers@ornl.gov' Subject: setuid doesn't recognize LD_LIBRARY_PATH Is there a way to specify trusted anything to allow a user to run a program with the setuid bit enabled in a C program, rather than copying all the necessary libraries to /usr/lib? It seems it doesn't recognize the LD_LIBRARY_PATH variable. Thanks