[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 13 Dec 2015 17:54, "Neil Winchurst" <barnaby@xxxxxxxxxxxx> wrote:
>
> Thanks for all that help.I am asking the wrong question it seems. I am
> not wanting the file to be encrypted at all. What I am looking for is a
> way to add a password to any file (leaving the file itself
> unchanged) so that I need to enter that password in order to access
> that file. As I said, when I click on the file a small window comes up
> asking for the password. Type that in and I can access the file. If I
> cannot provide the password the file won't open.
>
> I envisage the password check to happen first, then and only then, if I
> have provided the correct password, will the program look at the
> extension to decide which program to use to run it.
>
> I was also hoping to add a password as above to any folder. My accounts
> folder would be a good example. Rather than set up a password for each
> file, just one for the folder.
>
> Yes, I do know that individual files in LibreOffice can be encrypted. I
> have also used Truecrypt.
>
> It seems a different approach is needed,
>
> thanks,
>
> Neil
You could create a new user account for these specific files, change their ownerships and permissions so you can't open them as you. I don't think you're going to be able to make it work on a graphical for manager level (so no double clicking for you) but you could still open the file in question by using gksudo (or an equivalent) from the command line:
$ gksudo -u otherusername gedit passwordprotectedfile.txt
This would mean the file isn't encrypted, isn't compressed, keeps the same filetype, etc, but can't be opened by simply double clicking on it.
Grant. :)
-- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq