Bug: permissions in mOTUs conda env folder
Problematic line: motus
rule, L30:
chmod 666 $CONDA_PREFIX/share/motus-*/db_mOTU/*
It removes the x
flag (if it is present) making any folder affected by this change unreadable:
ls: cannot access /some/path/IMP_taxonomy/share/motus-2.5.1/db_mOTU/db_mOTU_test/test1_single.fastq: Permission denied
ls: cannot access /some/path/IMP_taxonomy/share/motus-2.5.1/db_mOTU/db_mOTU_test/test1.motus: Permission denied
total 0
-????????? ? ? ? ? ? test1.motus
-????????? ? ? ? ? ? test1_single.fastq
This should not affect the execution of the rule (at least with the given tool version).
But it might change when using a newer version of mOTUs
and it prevents the user from deleting the environment, i.e. the x
flag has to be set manually again.
There should be also no need to set the flag w
for non-group users.