tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error while changing file’s mode when saving file with ACL permissio


From: Tijs Mallaerts
Subject: Re: error while changing file’s mode when saving file with ACL permissions
Date: Thu, 18 Apr 2024 09:02:11 +0200

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.albinus@gmx.de>:
Tijs Mallaerts <tijs.mallaerts@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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]