C-x C-q desativa a leitura somente para o buffer , não para o arquivo.
A finalidade de C-x C-q é evitar que você altere acidentalmente o conteúdo de um buffer (seja ou não um buffer de arquivo).
Para alterar as permissões de um arquivo , use um dos seguintes:
- Comando
chmod - Dired, com
M(comandodired-do-chmod)
Use C-h f para ver o documento de cada comando:
chmodis an alias forset-file-modesinsubr.el.
(chmod FILENAME MODE)Set mode bits of file named
FILENAMEtoMODE(an integer). Only the 12 low bits ofMODEare used.Interactively, mode bits are read by
read-file-modes, which accepts symbolic notation, like thechmodcommand from GNU Coreutils.
dired-do-chmodis an interactive autoloaded compiled Lisp function indired-aux.el.It is bound to
M,<menu-bar> <operate> <chmod>.
(dired-do-chmod &optional ARG)Change the mode of the marked (or next
ARG) files. Symbolic modes likeg+ware allowed. TypeM-nto pull the file attributes of the file at point into the minibuffer.