unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: yes I'm root but want 444 files found readonly
Date: 27 Jun 2002 02:29:22 +0800	[thread overview]
Message-ID: <87ptyd99ml.fsf@jidanni.org> (raw)

$ su
# chmod 0 file
# chmod 444 otherfile
# emacs file otherfile
and the files are found without the "%%" readonly in the mode line.

OK, I'm root with the royal blood.  But that doesn't mean I don't want
to enjoy the same protection against altering my files all over the
place just like the other guy.  Sure wish there was an option in emacs
that would respect the hints from the file modes even if I'm root.  Or
what, do you expect me to do C-x C-q on each file?  Unfair.

Yes, for my mode 0 file the option could have a third etc. choice, not
only find-readonly, but also ask the user if he really wants to see it
etc.

Also there's the case of 444 but not owned by root.  Here also I would
find-readonly. 
-- 
http://jidanni.org/ Taiwan(04)25854780

             reply	other threads:[~2002-06-26 18:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 18:29 Dan Jacobson [this message]
     [not found] ` <86bs9vq671.fsf@eden-hda7.my.local>
2002-06-30 21:50   ` yes I'm root but want 444 files found readonly Dan Jacobson
2002-07-02  1:31 ` Jeff Sheinberg
2002-07-02 16:16   ` Francesco Potorti`
2002-07-03  2:18     ` Dan Jacobson
2002-07-03 16:01       ` Francesco Potorti`
2002-07-03 18:46         ` David desJardins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ptyd99ml.fsf@jidanni.org \
    --to=jidanni@dman.ddts.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).