Hg update error

When I try to run hg update I get the following error:

 abort: Operation not permitted: /var/www/simira/web/public/images/nominations/13/big/4f196667cf5a2.jpg 

Here is the info:

 $ cd /var/www/simira/web/public/images/nominations/13/big/ $ ll ./4f196667cf5a2.jpg -rw-rw-r-- 1 martin portadesign 15356 Feb 2 22:10 4f196667cf5a2.jpg $ ll -d ./ drwxrwxr-x 2 martin portadesign 4096 Feb 2 22:10 ./ $ id uid=5004(clime) gid=5007(portadesign) groups=5007(portadesign),10(wheel),48(apache) 

Tell me what's wrong, please ...

+6
source share
1 answer

The problem is caused by hg trying to change file permissions:

 $ sudo hg update $ ll ./4f196667cf5a2.jpg ./ -rwxrwxr-x 1 martin portadesign 15356 Feb 2 22:10 4f196667cf5a2.jpg 

Apparently, he added an executable bit to the image. This is the only bit that hg normally monitors, and there does not seem to be a β€œshutdown” option. The problem is that only the owner of the file can change their permissions.

+7
source

Source: https://habr.com/ru/post/907522/


All Articles