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