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

조회 수: 128 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2019년 9월 12일
편집: MathWorks Support Team 2019년 8월 20일
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.
Linux
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.
Windows
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.
Mac
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by