home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / minix / 3748 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!email!hp
  3. From: hp@vmars.tuwien.ac.at (Peter Holzer)
  4. Subject: Re: Help, I can ONLY EVER create directories when logged in as root, why?
  5. Message-ID: <1992Jul22.170538.28363@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: quasi.vmars.tuwien.ac.at
  8. Organization: Technical University Vienna, Dept. for Realtime Systems, AUSTRIA
  9. References: <10sis-c@massey.ac.nz> <1992Jul12.114039.1003@frmug.fr.mugnet.org> <45170@unlisys.in-berlin.de>
  10. Date: Wed, 22 Jul 1992 17:05:38 GMT
  11. Lines: 29
  12.  
  13. jac@unlisys.in-berlin.de (Joerg Conradt) writes:
  14.  
  15. >elrond@frmug.fr.mugnet.org (Bertrand Petit) writes:
  16.  
  17. >>In article <10sis-c@massey.ac.nz> G.Moretti@massey.ac.nz writes:
  18. >>>Hi
  19. >>>
  20. >>>I have a very peculiar problem with Minix 1.3.  Using a boot disk that
  21.                                              ^^^
  22. >>>I've created, I can only create directories when logged in as root.
  23. >>>
  24.  
  25. >>    Check the owner of your mkdir, it must be root so the u+s chmod can
  26. >>act as if you were logged as root.
  27.  
  28. >This is on good, 'cause then any user will be allowed to create any directory
  29. >at any place! My /usr/bin/mkdir is NOT setuid-root and works well.
  30.  
  31. Note that the poster was using Minix 1.3. The mkdir system call was not
  32. in Version 7 Unix and therefore not in Minix 1.1. A directory had to be
  33. created with mknod and link calls (to create . and ..), which had to be
  34. done by root. I don't know when mkdir was added to Minix, but I think
  35. it was after 1.3 (the 1.5 mkdir program  still has a gratuituous access
  36. call in it to check the permissions for the real user id).
  37. -- 
  38. |    _  | Peter J. Holzer                       | Think of it   |
  39. | |_|_) | Technical University Vienna           | as evolution  |
  40. | | |   | Dept. for Real-Time Systems           | in action!    |
  41. | __/   | hp@vmars.tuwien.ac.at                 |     Tony Rand |
  42.