Typically the way this is achieved is to write a shell wrapper around the command in question that sets the LD_* variables as needed and then execs the command. You then give the users sudo for that script. - todd