필터 지우기
필터 지우기

Hi! can any one help me how to password protect a matlab file or the folder in which the file is stored so that no one can delete it.

조회 수: 8 (최근 30일)
So. I am fairly new to MATLAB. I am trying to find a way to protect my source code so that no one can delete it. i am ok if they view it but i want that when ever any one access the folder or file. They should get a dialog box saying enter password and upon entering password they should be given access and even thou they have access they should not be able to delete it only the admin can delete it.Please help

채택된 답변

Walter Roberson
Walter Roberson 2017년 9월 11일
No, the ability to protect against deletion is not supported on any operating system that MATLAB is supported on. The closest you can get is to make the file be owned by someone else.
You might want to do that in connection with access control for Windows or ACL (Access Control Lists) for Linux or ACL for OS-X
Security settings cannot prevent someone logging in as administrator (or appropriate high-level authorization) and deleting the file.

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2017년 9월 11일
Why not use git source control? Then they can delete it all they want and all you have to do is pull or clone again but if they make a positive change you can review it and accept it if you wish?
  댓글 수: 1
sc1991
sc1991 2017년 9월 11일
Yea its a good idea but i mean is it possible to password protect it so that they just cant delete it. I am just asking coz i am really not sure if that will be possible I can't use any external software to passowrd protect. It has to be done through MATLAB

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Security in MATLAB Code에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by