From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Newsgroups: gmane.emacs.help Subject: Re: Why emacs touches read-only file? Date: 20 Apr 2007 07:51:18 -0700 Organization: http://groups.google.com Message-ID: <1177080678.623625.151790@y5g2000hsa.googlegroups.com> References: <1176920422.786251.122770@d57g2000hsg.googlegroups.com> <87zm53ye2l.fsf@lion.rapttech.com.au> <1177052457.225050.244290@b58g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1177083411 26775 80.91.229.12 (20 Apr 2007 15:36:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 15:36:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 17:36:42 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HevA5-0006u7-Af for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 17:36:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HevF9-0003Tt-Ju for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2007 11:41:51 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!y5g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 24.161.175.223 Original-X-Trace: posting.google.com 1177080679 24282 127.0.0.1 (20 Apr 2007 14:51:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 Apr 2007 14:51:19 +0000 (UTC) In-Reply-To: <1177052457.225050.244290@b58g2000hsg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: y5g2000hsa.googlegroups.com; posting-host=24.161.175.223; posting-account=sSuG_Q0AAACBMwnT3Ej4aAinBHQ74NmN Original-Xref: shelby.stanford.edu gnu.emacs.help:147294 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42899 Archived-At: On Apr 20, 12:00 am, Daniel wrote: > On Apr 19, 7:28 pm, Tim X wrote: > > > > >Daniel writes: > > > Hi all, > > > > 1. Create a file with permission of 444 (read-only) file. > > > 2. Open the file using emacs. > > > > Question. > > > > My emacs open the read-only file as writable buffer. Also, I can > > > modify it and save it. (AMAZING, emacs IGNORES unix file system. WOW.) > > > > What happened to the emacs, and how it works properly (open files as > > > read-only if it is read-only, and as writable if it is writable.) > > > > Thank you, > > > > Dan. > > > doing the same thing with emacs 22 gives me a read only file. any attempt to > > modify the file gives me a buffer is read only message. > > > Your not running as root are you? > > > Tim > > > -- > > tcross (at) rapttech dot com dot au > > I am running it as root, but the permission is read-only to root also. > Is there any problem? I am running it as root, but the permission is read-only to root also. Is there any problem?