Is there any way to block access to some particular file or folder in MacOS X, so that it can be protected by password?
|
Not directly - you have to use an app that accesses the file (e.g. a secure note in 1password or a program like gpg or your own app that encrypts/decrypts a file ) or put the file on an encrypted file system (create using Disk Utility or TrueCrypt etc.) See this question for some ways of encrypting. |
|||||||||
|
|
Using Terminal you can type the following commands to ensure root only access to the file or folder
This ensures that the file is protected by password. (the root password) You could do the same with any user. In the following command the "example_user" will have read and right access while nobody else will
|
|||||||||||||
|
|
Yes and no. If you want a file to be unreadable by a user without administrator privileges, you can Get Info for that file in the Finder. On the bottom of the information pane, there is a Sharing and Permissions section; setting everyone's settings to "No access" will prevent users of the OS from reading the file under normal circumstances. That said,
So it's not super-secure at all, but it is enough to keep nosy regular users without an abundance of technical sophistication out of a file. |
|||
|
|