home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13231 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!swrinde!sdd.hp.com!cs.utexas.edu!asuvax!ncar!mimbres.cs.unm.edu!unmvax!cs.sandia.gov!jhgreen
  3. From: jhgreen@cs.sandia.gov (Jethro H. Greene)
  4. Subject: SetUID
  5. Message-ID: <1992Nov11.035408.8251@cs.sandia.gov>
  6. Followup-To: poster
  7. Originator: jhgreen@cs.sandia.gov
  8. Sender: jhgreen@cs.sandia.gov
  9. Organization: Sandia National Laboratories, Albuquerque, NM
  10. Date: Wed, 11 Nov 92 03:54:08 GMT
  11. Lines: 24
  12.  
  13. I am trying to give certain paople (not in my group) read permission in 
  14. all of my files.  I am now experimenting in using shell scripts with the 
  15. SetUID bit set.  What kind of file does a SetUID script have to be?  Can
  16. it simply be
  17.  
  18.     cat > reader
  19.     (A bunch of password stuff)
  20.     cat
  21.     ^D
  22.  
  23.     chmod 4711 reader
  24.  
  25.  
  26.     ---or---
  27.     would I have to actually copy the script from the /usr/bin directory?
  28.  
  29. I don't really want to take the risk of experimenting with SetUID because 
  30. I know that it is dangerous.  Could someone explain SetUID to me or suggest
  31. a good source?
  32.  
  33.  
  34. Thanks in advance,
  35. Jed
  36. ---
  37.