File Write Permission Rules

jhc at vax5.CIT.CORNELL.EDU jhc at vax5.CIT.CORNELL.EDU
Wed Feb 22 14:22:13 AEST 1989


In article <5714 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
>In article <1177 at ubu.warwick.UUCP> mirk at uk.ac.warwick.cs (Mike Taylor) writes:
>[the unix permissions scheme is intuitive because a directory
>is a list of files]
>
>There is still a flaw.
>
>If a directory is like the card catalog in a library, and the files
>themselves are like the books, then it is counter-intuitive that, when
>somebody vandalizes the card catalog, all the books are destroyed too.
>
>In UNIX, the existence of a file under normal circumstances is nearly
>synonymous with the existence of its directory entry.  In a sense the
>directory entry represents the file to the user, since he cannot look
>at the file in any other way.  It *is* counterintuitive that a
>read-only file cannot be written to but can still be deleted.
>
>Thank heavens for the sticky bit on directories.  It came just in time,
>and does invalidate much of the criticism.

It would seem to me, that if you make the analogy that Rahul makes, you need
to go further and make the library one where the books are fetched for you
by library staff, rather than one where the stacks have public access.

Further, the gofers are somewhat dull, in that they can only find the books
if someone tells them what the catalog numbers are--especially as (if this
really _is_ the case) the books just might not have their catalog number
written on themselves.  Ie., PS344.A3S4 means something on the order of: 
go to floor PS, find room 344, go to stack row A, count up 3 shelves, find
section S of said shelf, and choos the 4th slot.)

Of course, the professional librarians can root thru the stacks and
recatalog all of the books; this takes considerable time and is quite an
annoyance--especially if somebody has a black-box that, when activated, will
expand itself into a building exacltly like the library was at a certain
point in time before the catalog was messed with. ;^)

[By making the librarians capable of recataloging the files, I make the
assumption that there exists somewhere a utility for UNIX that resembles the
Mac's Fedit, or Norton for the PC's,...]

Disclaimer:  I'm makeing a couple of assumption on how the UNIX file system
works, but I think that my assumptions are close to correct.  (Although the
6+ step process of maping a US Lib. of Congress catalog number to a book was
not supposed to indicate the there are that many steps involved in UNIX ;^)

-JimC
--
James H. Cloos, Jr.          "Entropy isn't what it used to be."
jhc at Crnlvax5.BITNET            --c/o Fortune @ batcomputer.UUCP
jhc at Vax5.CIT.Cornell.EDU	 #include <std_disclaimers.h>
cornell!vax1!vax5.cit.cornell.edu!jhc at rochester.UUCP
B-7 Upson Hall, Cornell Univ., Ithaca, NY 14853   +1 607 272 4519



More information about the Comp.unix.questions mailing list