External Email - Use Caution        

Hello Rana,

Looks like you are missing a capital S at the end of SUBJECT or it’s SUBJECTS_DIR instead of SUBJECT_DIR.

export SUBJECTS_DIR=/home/banikr2/273_p

So the default SUBJECTS_DIR, /usr/local/freesurfer/subjects, ended up getting used, and you do not have permission to write there.

- R.

On Sep 26, 2021, at 14:10, Banik, Rana <rana.banik@vanderbilt.edu> wrote:

        External Email - Use Caution        
        External Email - Use Caution        
I installed freesurfer here: 

banikr2@banikr:~$ which freesurfer 
/usr/local/freesurfer/bin/freesurfer

I am getting the following error while running recon-all:
banikr2@banikr:~$ export SUBJECT_DIR=/home/banikr2/273_p
banikr2@banikr:~$ recon-all -s sub273 -i 273_p/273_MR.nii
mkdir: cannot create directory '/usr/local/freesurfer/subjects/sub273': Permission denied
mkdir: cannot create directory '/usr/local/freesurfer/subjects/sub273': Permission denied
mkdir: cannot create directory '/usr/local/freesurfer/subjects/sub273': Permission denied
cp: cannot create regular file '/usr/local/freesurfer/subjects/sub273/scripts/build-stamp.txt': No such file or directory
cat: /usr/local/freesurfer/subjects/sub273/scripts/build-stamp.txt: No such file or directory
INFO: FreeSurfer build stamps do not match
Subject Stamp: 
Current Stamp: freesurfer-linux-centos6_x86_64-7.1.1-20200723-8b40551


Any suggestions?

Rana Banik
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1OG3BAo0lmU7cE8cn9LvmHGOEYJzbtbgtwdIvUeIwpOy9kXhVQ-h2j_LveMzWwYTkZ2AqEE8r0GJeWpLjEPOHdUK_hrAe6A9nF9duhTCbe1ACFFJzElxg8IrW7vAtVlSF1RXP7Dr0UUnskPRn4eZT5x9kfwr2t9JxN_OGawnuSTnvIK_SWF89JiymqD7T0csS5MzLGkbeUHy_l-JCJTAYaDIaRkN2AG8adtZhWjjaeeAKbBu14kofu7r8rX6JautSUQCIP5jw9zJhJVfqIlHAOQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer