home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10250 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mcsun!Germany.EU.net!murignis!ap542!D012S436!frank
  3. From: frank@D012S436.sniap.mchp.sni.de ()
  4. Subject: Re: Sticky bit/environment question
  5. Message-ID: <1992Aug21.094003.1030@sniap.mchp.sni.de>
  6. Sender: news@sniap.mchp.sni.de (News Admin)
  7. Organization: Siemens-Nixdorf AG
  8. References: <1992Aug5.193814.12436@gwl.com>
  9. Date: Fri, 21 Aug 92 09:40:03 GMT
  10. Lines: 33
  11.  
  12. mmas@gwl.com (Mark Mastandrea) writes:
  13. : Hi,
  14. : I have an executable that needs to run as root and also needs to have
  15. : its LD_LIBRARY_PATH environment variable set so it can find some shared
  16. : libraries that it needs. I set the LD_LIBRARY_PATH under root to point to
  17. : the right path and then ran the executable as root. This works fine. 
  18. : I then make root the owner and set the sticky bit . Now when I run
  19. : the executable as another user the application cannot find the shared 
  20. : library. Both the user and roots environment have LD_LIBRARY_PATH set
  21. : but this seems to be ignored. Has anyone any ideas ? Please email
  22. : me at mmas@gwl.com .
  23. : Thanks in advance
  24. : Mark
  25.  
  26.  
  27. I tried to email, but it bounced.  You don't say what system you're
  28. working on, but under SVR4 my understanding is that SUID/SGID programs
  29. can only use shared libraries in "trusted" directories.  For now, 
  30. I believe this means "/usr/lib" and "usr/ccs/lib".  Chances are
  31. your libraries are elsewhere.
  32.  
  33.  
  34. Hope this helps,
  35. Frank.
  36. --
  37. Frank O'Dwyer                           Disclaimer: 
  38. Siemens-Nixdorf AG                             I will deny everything
  39. Tel.  : +49 (89) 636-40639                      Fax.  : +49 (89) 636-45860
  40. e-mail: Frank.ODwyer@sniap.mchp.sni.de
  41.