IOError: [Errno 13] Permission denied: './med-3.2.1_SRC/doc/

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
ffan
Posts: 66
Joined: Thu Jul 24, 2014 3:23 pm

IOError: [Errno 13] Permission denied: './med-3.2.1_SRC/doc/

Post by ffan »

Hi,

My system is RHEL 6.8. In building MED 3.2.1 for Code_Saturne 5.0.4, it encountered the following problem. Why does it happen and how to get around it? Thanks.

Fa-Gung Fan

MED (Model for Exchange of Data)
version: 3.2.1
url: http://files.salome-platform.org/Salome ... 2.1.tar.gz
package: med
source_dir: None
install_dir: /user/fanf4/Code_Saturne/5.0.4/med-3.2.1/arch/Linux_x86_64
config_opts: --with-med_int=long --disable-fortran --disable-python --with-hdf5=/user/fanf4/Code_Saturne/5.0.4/hdf5-1.8.17/arch/Linux_x86_64

Extract of MED
Traceback (most recent call last):
File "../code_saturne-5.0.4/install_saturne.py", line 1419, in <module>
setup.install()
File "../code_saturne-5.0.4/install_saturne.py", line 1157, in install
p.extract()
File "../code_saturne-5.0.4/install_saturne.py", line 292, in extract
tar.extractall()
File "/cadtools/contrib/python/lib/python2.7/tarfile.py", line 2047, in extractall
self.extract(tarinfo, path)
File "/cadtools/contrib/python/lib/python2.7/tarfile.py", line 2084, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/cadtools/contrib/python/lib/python2.7/tarfile.py", line 2160, in _extract_member
self.makefile(tarinfo, targetpath)
File "/cadtools/contrib/python/lib/python2.7/tarfile.py", line 2200, in makefile
with bltn_open(targetpath, "wb") as target:
IOError: [Errno 13] Permission denied: './med-3.2.1_SRC/doc/jpg/xmdump4.jpg'
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: IOError: [Errno 13] Permission denied: './med-3.2.1_SRC/

Post by Yvan Fournier »

Hello,

Which directory are you installing from ? Did you create a directory as root, or using sudo, or did you only use you standard account (which is the recommended option) ?

Regards,

Yvan
ffan
Posts: 66
Joined: Thu Jul 24, 2014 3:23 pm

Re: IOError: [Errno 13] Permission denied: './med-3.2.1_SRC/

Post by ffan »

Hi Yvan,

Thank you for reply. I installed it from my Downloads directory with my standard account (without using sudo or su). It is a cluster machine, and I don't have the super user right anyway. Now, I checked the permissions of the reported file and the directories "./med-3.2.1_SRC/doc/jpg/xmdump4.jpg". They are as the following:
drwx------ 9 fanf4 leads 600 Nov 7 2016 med-3.2.1_SRC
drwx------ 8 fanf4 leads 190 Nov 7 2016 doc
drwx------ 2 fanf4 leads 266 Nov 7 2016 jpg
-r--r--r-- 1 fanf4 leads 121849 Apr 14 2016 xmdump4.jpg

I also installed the same downloaded Code_Saturne-5.0.4 package on a Ubuntu workstation. Again, from my Downloads directory and using only standard account right. This time, the med-3.2.1 package was successfully installed. Checked permissions of the file and the directories:
drwxrwxr-x 9 ffan ffan 4096 Oct 13 09:50 med-3.2.1_SRC
drwxr-xr-x 8 ffan ffan 4096 Nov 7 2016 doc
drwxr-xr-x 2 ffan ffan 4096 Nov 7 2016 jpg
-r--r--r-- 1 ffan ffan 121849 Apr 14 2016 xmdump4.jpg

Apparently, the Ubuntu installation gave more permissions to group and other, but they both were installed with user account and to user directory.

- ffan
Post Reply