home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / misc / 5889 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!inmos!inmos.co.uk!brwal!hughm
  3. From: hughm@brwal.inmos.co.uk (Hugh McIntyre)
  4. Subject: Re: Directories, set-guid?
  5. Message-ID: <1992Dec17.090532.10830@inmos.co.uk>
  6. Sender: news@inmos.co.uk
  7. Organization: INMOS Limited, Bristol, UK
  8. References: <BzAH8n.3wn@fafnir.com> <15915@auspex-gw.auspex.com>
  9. Date: Thu, 17 Dec 1992 09:05:32 GMT
  10. Lines: 28
  11.  
  12. In article <15915@auspex-gw.auspex.com>, guy@Auspex.COM (Guy Harris) writes:
  13. |> >What does a mode set-guid mean for a directory? I notice that our Sun
  14. |> >has most system directories, like /etc, set to mode 's' for group.  The
  15. |> >man pages say this is possible but is ignored.
  16. |>
  17. |> Any SunOS 4.x man page that says that is incorrect.
  18.  
  19. What the man page for chmod actually seems to say is that you can only change
  20. this bit in symbolic, not absolute mode, ie:
  21.  
  22.     chmod 2755 directory       <--- 2000 bit ignored
  23.     chmod g+s  directory       <--- OK,  not ignored
  24.  
  25. [under Absolute Modes ...]
  26.  
  27.      2000    Set group ID on execution (this bit  is  ignored  if
  28.              the  file  is  a directory; it may be set or cleared
  29.              only using symbolic mode).
  30.  
  31. [again under Symbolic Modes ...]
  32.  
  33.           s       Set owner or group ID. This is only useful with
  34.                   u or g.  Also, the set group ID bit of a direc-
  35.                   tory may only be modified with `+' or `-'.
  36.  
  37.  
  38. Hugh McIntyre.
  39. INMOS, Bristol, UK.
  40.