home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / minix / 3776 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.9 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!nmrdc1!frmug!elrond
  2. From: elrond@frmug.fr.mugnet.org (Bertrand Petit)
  3. Newsgroups: comp.os.minix
  4. Subject: Re: Help, I can ONLY EVER create directories when logged in as root, why?
  5. Message-ID: <1992Jul25.121908.19975@frmug.fr.mugnet.org>
  6. Date: 25 Jul 92 12:19:08 GMT
  7. References: <10sis-c@massey.ac.nz> <1992Jul12.114039.1003@frmug.fr.mugnet.org> <45170@unlisys.in-berlin.de>
  8. Organization: Minix User Group France
  9. Lines: 33
  10.  
  11. In article <45170@unlisys.in-berlin.de> jac@unlisys.in-berlin.de (Joerg Conradt) writes:
  12. >elrond@frmug.fr.mugnet.org (Bertrand Petit) writes:
  13. >
  14. >>In article <10sis-c@massey.ac.nz> G.Moretti@massey.ac.nz writes:
  15. >>>Hi
  16. >>>
  17. >>>I have a very peculiar problem with Minix 1.3.  Using a boot disk that
  18. >>>I've created, I can only create directories when logged in as root.
  19. >>>
  20. >>>When logged in as a normal user, I can't create directories anywhere,
  21. >>>even in a subdirectory to which I have 777 rights.  It's strange, I
  22. >>>can create files in all the expected directories but I can't create
  23. >>>subdirectories.
  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. Maybe
  30. >Bertrand can give us any further details, e.g. what mkdir says, or doesn't
  31. >it print out anything?
  32.  
  33.     mkdir use mknod to create directorys but mknod can only be used if
  34. you have an uid eual to zero if i renember well. I can confirm this because
  35. i have no book nor man at this place. I sounds me correct to give a suid root
  36. to mkdir in order to alow the creation of directories but mkdir should
  37. check the w permisions.
  38.  
  39.  
  40. -- 
  41. |    Bertrand Petit          |         Signature is under construction        |
  42. |    alias                   |                                                |
  43. |    >Elrond le demi-Elfe<   |         Be sure to wear your helmet            |
  44.