Saturday, May 4, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 521  / 3 Years ago, fri, august 13, 2021, 12:05:15

I'm a biomedical scientist and I'm having trouble running a custom data analysis pipeline written by one of our collaborators. His script crashes with



/bin/sh: 1: /usr/local/bin/FastQC/FastQC_v0.10.1: Permission denied
make[2]: *** [/home/kat/gentrap.git/gentrap_OUT/1_Bira_TAAGGCGAGAGTAG_R1.fastqc] Error 1
make[2]: Leaving directory `/home/kat'


Thing is, I've already made myself the owner of /usr/local/bin/FastQC (sudo chown -R user:user /usr/local/bin/FastQC) and given myself read/write/executable permissions (sudo chmod -R +rwx /usr/local/bin/FastQC). I tried listing permissions with ls -la and I'm a little confused by the output:



drwxr-xr-x 3 kat  kat  4096 mei  8 14:20 .
drwxr-xr-x 5 root root 4096 mei 8 14:20 ..
drwxr-xr-x 7 kat kat 4096 mei 8 14:20 FastQC_v0.10.1


As I understand it, that means I'm the owner of the current directory and the subdirectory FastQC_v0.10.1, and I should have all the permissions. Root is the owner of the parent directory, which would be /usr/local/bin. Am I reading this output correctly? Why would the script be crashing due to insufficient permissions?


More From » command-line

 Answers
3

I got the same error. I end up putting FastQC to /usr/share, as many other packages are put there, and put a link to /usr/local/bin, as suggested by the installation guide. Then I changed the permissions to files under FastQC.



sudo ln -s /path/to/FastQC/fastqc /usr/local/bin/fastqc
sudo chmod -R 755 /path/to/FastQC

[#25348] Sunday, August 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;