Info...”). This will lock all the selected files. Open Terminal and enter the following line: sudo ch flags no options ls You will now be able to view the ls command to understand which files are locked. You can also change the lock flag on a group of files at once with: sudo ch flags UFS -t Unlocking and Locking Files — Mac Central World The lock command lets you select files or directories and then choose to lock or unlock them at a later time. To enable using non, enter non lock and to disable using non, type non. You can also lock or unlock directories by typing ch flags -a or entering: ch flags -i. How to Unlock/Unlock Multiple Files — Stack Overflow Use the ch flags command to lock (or unlock) multiple files at the same time. Enter the following command and then follow the prompts to unlock or lock each file(s): sudo ch flags file How to Lock Files in Mac OS X Using Command-Space (Keyboard Shortcuts) — Lifehacker.com By default /System/Library/KernelConfig/ has some security options enabled that will disable security and privacy features. The command is cannot, so enter the following commands with the correct directory in mind: CD /System/Library/KernelConfig cannot open (open) /System/Library/KernelConfig cannot delete “roots” (a file that gives system security access in the kernel) CD /etc/security ch mod g+s HOME ch flags UFS -t (if you want to lock the file, add -t) The ch flags will open the file (to view its contents) and allow to write access to the file(s). The ch mod will then make the file unreadable only when the user is in the privileged (root) mode. How to Change the Lock Flag Using Terminal — Machine There were many ways of changing the locked flag in this article, but one method worked well: type: ch flags -f in a non-root user's user folder (the default directory for the user), then hit Enter. A prompt will appear, saying your files have been locked. To change the flag, type: ch flags -L in the same folder. Be warned: this changes every folder in the user's folder, so your new flag may not last forever.