Newsgroups: comp.sys.amiga.misc Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!sirius!gerber From: gerber@sirius.astro.uiuc.edu (Richard Gerber) Subject: What does the r protection bit do anyway? Message-ID: <1991May17.133831.2388@ux1.cso.uiuc.edu> Summary: Why doesn't the read protection bit do anything Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Date: Fri, 17 May 1991 13:38:31 GMT Lines: 36 Hi all, What does the 'r' protection bit under AmigaDOS do? I thought it would prohibit read access, but it appears to have no affect on anything. In fact all these bits seem a bit screwy to me. I played around with text files, I set various bits then tried to edit the file with ed, and here's what I found: (1) Can I read the file into ed? (2) Can I save changes made in ed? (3) Can I delete the file? (4) Final status after trying to save in ed. Original (1) (2) (3) (4) status Filename ----rwed Textfile YES YES YES ----rwed -----wed Textfile YES YES YES ----rwed ----r-ed Textfile YES YES YES ----rwed ----rwe- Textfile YES NO NO ----rwe- -------d Textfile YES YES YES ----rwed -------- Textfile YES NO NO -------- ----r--d Textfile YES YES YES ----rwed i So it appears that the only thing that has any effect is the 'd' bit. Even worse, the program Stevie lets me edit and save changes with all protection bits turned off. (It does keep a copy of the original in filename.bak, however.) So am I just missing something here? How do these things work? Regards, Richard gerber@rigel.astro.uiuc.edu