Search code examples
linuxsublimetext2file-permissionssamba

How to stop Sublime Text 2 from removing the "Read & Execute" flag upon save


Using Sublime Text 2, I sometimes have to edit shell files that are executed by bash in a cron. However, when I save these files, the execute flag is being removed from the file, causing the cron to fail when trying to execute the file. I have to chmod the file every time I change it. Previously, using Ultra-Edit, I never had this issue.

Has anyone else dealt with this issue who can recommend a fix or solution?


Solution

  • This problem can be fixed by disabling the map_archive feature of samba.

    [global]
    map archive = no
    

    This should solve the problem.

    Source