Xref: utzoo gnu.emacs.help:1787 comp.emacs:10566 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!sjsca4!konath From: konath@sj.ate.slb.com (Kannan Konath) Newsgroups: gnu.emacs.help,comp.emacs Subject: Saving a file in emacs without the right permission bits Message-ID: <1991Apr18.220342.25107@sj.ate.slb.com> Date: 18 Apr 91 22:03:42 GMT Distribution: usa Organization: Schlumberger Technologies, San Jose Lines: 26 Originator: konath@arjuna I am using GNU Emacs 18.57 on Sparc SLC running SunOS 4.1.1 When I create a file it is created with permission bits set to rw-r--r--. I walk over to another workstation with a different user, who has the same group id as I do, and try editing the same file. Emacs tells me the buffer is read-only but if I do a "C-x C-q" (toogle-read-only) the "%%" disappears from the status line and turns to "--". I alter the file and when I try saving it, emacs responds by asking me whether I really want to save the file, to which I reply yes. It saves the file and changes the ownership of the file to the new user. My question is this: Isn't it illegal for another user to be able to overwrite a file over which he does not have "w" status? kannan -- ------------------------------------------------------------------------------ Kannan Konath Phone: (408) 437-5143 Software Engineer Email: konath@sj.ate.slb.com Board Test Products