You can password lock files within some programs. For example, Pages and Numbers allow this. To access that feature for a file, with the file open click the Inpector item in the toolbar, then click the leftmost item in the Inspector window's toolbar (Document inspector). The option to password lock the file is at the bottom of that screen.
I'm just trying to password protect a document which has private info on so that no one other than the owner can open it with a password. New to iMac and still trying to shake off Microsoft! It's just a home account file and don't want the kids looking at it. One of the other comments kindly directed me to make another user which I did but then I'm struggling how to copy and transfer the file from me, the current user, to the new user (my wife). The other response whilst useful doesn't seem to work as its a dreaded microsoft word document we transferred from our old pc
I guess with a 'new user' that would solve the problem but how now can I transfer that file to the new user and remove it from me as a user?
Sorry to sound a bit useless! Any help appreciated
Create a password protected encrypted sparse bundle and stick it in there. Choosing a sparse bundle will allow that folder to grow as you use it. I keep all my sensitive stuff, taxes etc. in there. Be sure not to have Keychain remember it. And don't forget the password. If you do, it will be gone forever.
It's really not complicated.
Easy way is to use disk utility to create a disk image. It will default to 100 mb but make it what you like.
Select encryption and a name etc.
Put in password.
Put the image it creates on the desktop or wherever and put files into it.
When done with it, throw it in trash to close the image. (it will still be on desktop.)
When you select it, it will ask for password.
(mess around a bit to be sure everything works)