unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 29455-done@debbugs.gnu.org, Shuguang Sun <shuguang@gmail.com>
Subject: bug#29455: backup-by-copying ACL Operation not permitted with Windows 7 and Samba
Date: Sun, 29 Sep 2019 02:11:45 +0200	[thread overview]
Message-ID: <CADwFkmmj01ARRt+UKc4uWOBd78BeAPHFf82BWrPNJ4p=Lw14JA@mail.gmail.com> (raw)
In-Reply-To: <CACspjXcM1ZPKw7-q_GgV-6xUOqx2QQLRJEsATYFRRE49tKrmsg@mail.gmail.com>

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Shuguang Sun <shuguang@gmail.com>
>> Date: Tue, 28 Nov 2017 18:43:53 +0800
>> Cc: 29455@debbugs.gnu.org
>>
>>  Thanks, but that's not what I asked.  I asked you to create a local
>>  file (which I call "SOME-FILE" below, replace that with the actual
>>  name of the file), and then type this inside Emacs:
>>
>>    M-: (set-file-acl "SOME-FILE" "O:S-1-22-1-79077G:S-1-22-2-108D:P(A;;0x1e01ff;;;S-1-22-1-79077)
>>  (A;;FR;;;S-1-22-2-108)(A;;FR;;;WD)") RET
>>
>> It raises the same error message:
>> (file-error "Setting ACL" "Operation not permitted" "c:/Users/username/Documents/base/subtitle.txt")
>>
>> or
>> eval: Setting ACL: Operation not permitted, c:/Users/username/HOME/.emacs.d/autosave/.bashrc.~1~
>
> OK, I think I understand what causes this: the problem is with setting
> the owner of the file to a user whose SID the local system doesn't
> recognize, because it's not a local user.  If you omit the
> O:S-1-22-1-79077G:S-1-22-2-108 part from the argument, the
> set-file-acl call will most probably succeed.
>
> I think that Emacs works correctly in this case: it tries to preserve
> the ACLs of the original file in the backup file, and when that fails,
> falls back to preserving only the read-write mode bits.  Your original
> problem was caused by debug-on-error being non-nil, which shouldn't be
> done except when debugging something.
>
> I don't see how we could avoid showing the error message, because
> Emacs cannot possibly know which user SID values are known to the
> local system.  When you configure your backups of files from networked
> drives to be stored on a local disk, you should realize that you run
> the risk of having these problems with preserving extended
> permissions.
>
> So I think we see Emacs working as designed, and this bug should be
> closed.

According to the above, this bug should be closed.  I'm doing so now.

Best regards,
Stefan Kangas





      parent reply	other threads:[~2019-09-29  0:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-26 14:59 bug#29455: backup-by-copying ACL Operation not permitted with Windows 7 and Samba Shuguang Sun
2017-11-26 17:01 ` Eli Zaretskii
2017-11-27  6:29   ` Shuguang Sun
2017-11-27 15:52     ` Eli Zaretskii
2017-11-28  9:11       ` Shuguang Sun
2017-11-28 10:43       ` Shuguang Sun
2017-11-28 15:23         ` Shuguang Sun
2017-11-28 17:28         ` Eli Zaretskii
2019-09-29  0:11 ` Stefan Kangas [this message]

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='CADwFkmmj01ARRt+UKc4uWOBd78BeAPHFf82BWrPNJ4p=Lw14JA@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=29455-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=shuguang@gmail.com \
    /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).