home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10506 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.4 KB  |  28 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!wupost!uwm.edu!linac!uchinews!machine!chinet!les
  3. From: les@chinet.chi.il.us (Leslie Mikesell)
  4. Subject: Re: How can I allow access to a subdirectory without risking other files?
  5. Message-ID: <Btq39I.1on@chinet.chi.il.us>
  6. Organization: Chinet - Public Access UNIX
  7. References: <92Aug25.200814.1577@acs.ucalgary.ca> <92Aug26.165308.27634@acs.ucalgary.ca>
  8. Date: Sat, 29 Aug 1992 02:08:05 GMT
  9. Lines: 17
  10.  
  11. In article <92Aug26.165308.27634@acs.ucalgary.ca> barker@enel.ucalgary.ca writes:
  12. >I know how to give group/other access to a subdirectory without risking my
  13. >other files, however, I want people to be able to read/write to ANY file in
  14. >the subdirectory. That includes files put there by other people.  The only way
  15. >I know of to do this is to make sure that everyone has their umask set to 000
  16. >when they are working in that subdirectory.
  17.  
  18. It sounds fairly dangerous to do this without any arbitration to keep
  19. several people from writing to the same file at once.  Why don't you
  20. just insist that each person copy a file before making changes?  Or
  21. write a suid root program that does nothing but change the modes on
  22. the files in that directory and make the users run that before writing
  23. to any files.  Better yet, make the program also perform some kind of
  24. file locking while each person is writing.
  25.  
  26. Les Mikesell
  27.   les@chinet.chi.il.us
  28.