How can I find the encrypted file name of a given file?

Asked by Martin Soto

I use the unison utility to synchronize a number of directories among several computers and external disks. Recently, I had to encrypt the home directory in one of these computers, and this has made unison very slow when working on that computer. Googling around, I've found that the recommended solution in this case is to run unison on the raw, encrypted data. This would also force me to keep all synchronized directories encrypted, but I'm OK with that.

Now, the problem is that my home directory is really large, and I never run unison on the whole of it, but just on some subdirectories. This means that, in order to run it on the encrypted data, I would have to know the encrypted names of the directories I want to synchronize. How can I find them? Is it possible to encrypt a single file name? Is there some utility or library call that performs this task?

Thanks a lot,

Martín

Question information

Language:
English Edit question
Status:
Answered
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

It's a nasty hack, but I just chmod the file I want to find with a
weird permission, like 123. And the in the encrypted dir, use "find .
-perm 123".

:-Dustin

Can you help with this problem?

Provide an answer of your own, or ask Martin Soto for more information if necessary.

To post a message you must log in.