How to password protect mat files
Ältere Kommentare anzeigen
Hi all.
I am looking for a way to password protect a .mat file. My requirements are that it cannot be changed or deleted without a password.
I'm not looking for encryption, I just don't want someone else to accidentally delete it, since it is on a network drive. I want to be able to load and save the file using MATLAB.
I thought about creating a password protected .zip file, but MATLAB cannot unzip protected files.
Any suggestions would be appreciated.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 6 Aug. 2013
0 Stimmen
Protection against deletion needs to be at the operating system level, not at the MATLAB level.
Generally speaking, you would set the ownership of the file to be different than any userid that will have normal access to the file, and you set the file to be only writable by the owner. The mechanisms to do these vary with the operating system you are using.
3 Kommentare
Yoav Livneh
am 7 Aug. 2013
Walter Roberson
am 7 Aug. 2013
That might be difficult. Which operating system will be used?
Yoav Livneh
am 7 Aug. 2013
Kategorien
Mehr zu Share and Distribute Software finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!