why do i get the error "[Error using fileread (line 23) Could not open file /home/draa​del/.matla​b/R2021a/t​hisMatlab.​pem. Permission denied."

10 views (last 30 days)
[Error using fileread (line 23)
Could not open file /home/draadel/.matlab/R2021a/thisMatlab.pem. Permission denied.

Answers (1)

Sudhakar Kumar
Sudhakar Kumar on 21 Sep 2021
I understand that you are facing permission issues with MATLAB on your machine.
From the error message, it looks like you have installed MATLAB on a Linux machine. To get rid of the error, you can grant permission for that file specifically or for the /home/draadel/.matlab/R2021a directory. For this, you need to follow the steps below:
  • Open a Terminal by pressing Ctrl + Alt + T on your Linux machine.
  • Execute the follwing command: sudo chmod -R 777 /home/draadel/.matlab/R2021a
For more information, you can refer to a similar MATLAB answer on MATLAB permission error in Linux Ubuntu 18.04
  2 Comments
Satyesh Awasthi
Satyesh Awasthi on 29 Mar 2022
Thanks a lot @Sudhakar Kumar , it worked for me, It also solved the issue of :
"The desktop configuration was not saved successfully"
Walter Roberson
Walter Roberson on 29 Mar 2022
Note that it is common for pem files to not have read access. They are used to contain security information and making them unreadable without privileges increases their security.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!