MATLAB Answers


Why does the MATLAB update fail with “Access denied”?

Why does the MATLAB update fail with “Access denied”?
Update Failed
Access is denied. You do not have write permissions to the folder /local/install/testUpdate.
For more information, see this MATLAB Answer.


No tags entered yet.


1 Answer

Answer by MathWorks Support Team on 12 Sep 2019
Edited by MathWorks Support Team on 12 Sep 2019
 Accepted Answer

Permissions are rules associated with files that determine who can access a file and what you can do with it. This message means that the account you are running the installer as does not have permission to write to the target install location. Check with your IT help desk to verify that you have the required permissions before viewing the steps below as some organizations limit user privileges.
You can check permissions by navigating to the preceding folder (/local/ install/testUpdate/ in the example above) and running the command "ls -la" to check ownership and permissions.
To allow your user account to write to the location, you will want to run the command:
sudo chown -R $LOGNAME: /path/to/installation/directory
where the path is the folder you are trying to create a folder in and/or write to. This command gives your user account (which the system pulls from the $LOGNAME variable) ownership of the folder and all subfolders and directories, allowing you to read and write natively.
If you are still unable to write to that location, you will need to use the chmod command to fix the permissions. For example:
sudo chmod u+rwx -R /path/to/installation/directory
will give your user account read, write, and execute permissions, and will allow any other account to read or execute (run) files in the directory or subdirectories.
Make sure you are an Administrator, or you are part of the Domain Admins group if you are in a domain.
To check the permission of the file or folder, follow these steps: * Right-click the file or folder, and then select Properties. * Select the Security tab. * Under Group or User names, click your name to see the permissions you have. * Select Edit, and then select to check the check boxes for the permissions that you need, and then select OK.
To assign permissions to users and groups * Select a disk, folder, or file, then choose File > Get Info. * If the information in Sharing & Permissions isn’t visible, click the disclosure triangle. * If necessary, click the lock icon to unlock it, then enter an administrator name and password. * Click a user or group in the Name column, then choose a privilege setting from the pop-up menu. * Read & Write: Allows a user to open the item and change it. * Read Only: Allows a user to open the item, but not change its contents. * Write Only: Makes a folder into a drop box. Users can copy items to the drop box but can’t open it. Only the owner of the drop box can open it. * No Access: Blocks all access to the item.


Sign in to comment.