Re: error while changing file’s mode when saving f ile with ACL permissions

Tijs Mallaerts <[email protected]>
Newsgroups gmane.emacs.tramp
Message-ID <CAA8HaRxNx8f9ar6Z9n5zpZM5gTr7mXXkH3Xn=xX1AMoZpWGX+A@mail.gmail.com>
Hi Michael,

As I understand it, only the file owner can run the chmod command on the
file, but my user is not the owner in this case. When I skip the call to
tramp-sh-handle-set-file-modes editing the file seems to work correctly.

Would it be an idea to check first if the user can run the chmod command
before calling the tramp-sh-handle-set-file-modes function?

Thank you,
Tijs

Op wo 17 apr 2024 om 20:19 schreef Michael Albinus <[email protected]>:

> Tijs Mallaerts <[email protected]> writes:
>
> > Hi Michael,
>
> Hi Tijs,
>
> > This is the output of the command:
> >
> > chmod: changing permissions of ‘/var/www/aaa/index.htm’: Operation not
> > permitted
> > tramp_exit_status 1
>
> This doesn't tell us much. Hmm.
>
> Could you try to find out, why chmod on that machine does not have
> proper permissions for that file? And are you sure, that it is ACL and
> not the SELinux security context which is in the way? Perhaps you can
> play with chmod's --role and --type arguments, if it supports them?
>
> > Thank you!
> > Tijs
>
> Best regards, Michael.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.