home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9458 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.8 KB  |  45 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!wupost!gumby!destroyer!ubc-cs!uw-beaver!micro-heart-of-gold.mit.edu!bloom-beacon!bloom-picayune.mit.edu!daemon
  3. From: Kevin W. Hammond <hammond@kwhpc.caseng.com>
  4. Subject: Re: Broken symlinks ?? (followup)
  5. Message-ID: <1992Aug31.054608.2405@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: hammond@kwhpc.caseng.com
  8. Organization: The Internet
  9. Date: Mon, 31 Aug 1992 05:46:08 GMT
  10. Lines: 33
  11.  
  12. | ** Mitchum D'Souza said:
  13. | > Anyway about symbolic links: Say you have a binary, lets take `ls' for
  14. | > example. Now say there is a symbolic link to it - maybe `dir'. Now if the
  15. | > actual executable (ls) is non-readable then the symbolic link (dir) will fail
  16. | > to execute. Theoretically this is the correct behavior, [...]
  17. | No, this isn't correct behavior.  That's the whole purpose of the execute
  18. | permission bit: allow execute, but not read.  Almost all of the executables
  19. | on my system have mode 711.  That includes symbolic links to executables
  20. | (but I'm still on 0.97).
  21. | > [...] (neither bash nor zsh), until the actual binary is make a+r.
  22. | I dunno about bash and zsh, but tcsh works correctly with executables/symbolic
  23. | links that are mode 711.
  24. |  
  25.  
  26. 0.97 seems to fail if the actual executable is owned by root and has a mode of
  27. 711 (or actually, any mode that does not include read permission).  If the executable
  28. is owned by a non-root user, things do work correctly.  Is this some sort of security
  29. measure in the kernel?  Maybe I (or anyone else) should look at the kernel code to
  30. find out!
  31.  
  32. BTW: Darren - it looks like you finally made a break away from UUPC/Extended and into
  33. the Linux world.  How do you like it so far??
  34.  
  35. -kwh-
  36. -- 
  37. Kevin W. Hammond
  38. hammond@kwhpc.caseng.com
  39.  
  40.   CASE Engineering * 575 W. Madison #1601 * Chicago, IL 60661 * (312)902-2161
  41.