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 <michael.albi...@gmx.de>: > Tijs Mallaerts <tijs.mallae...@gmail.com> 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. >