1 |
Hi, |
2 |
|
3 |
I want to index the contents of a ecryptfs-ed directory tree with |
4 |
mlocate storing the resulting db in that directory tree. |
5 |
|
6 |
I was using this command to create that db file (as the user (me), |
7 |
who is permitted to use/read/write the directory tree): |
8 |
|
9 |
(being at the root of that directory tree) |
10 |
updatedb -l 0 -o var/lib/mlocate/mlocate.db -U . |
11 |
|
12 |
, which was taken from the EXAMPLES section of the according manpage. |
13 |
|
14 |
The file was created (in a suspiscous short time, though). |
15 |
|
16 |
Reading its contents with |
17 |
|
18 |
locate -d var/lib/mlocate/mlocate.db whattofind |
19 |
|
20 |
results in |
21 |
|
22 |
locate: can not stat () `var/lib/mlocate/mlocate.db': Permission denied |
23 |
|
24 |
the file shows this permission: |
25 |
|
26 |
-rw-r--r-- 1 me users 1319628 2019-12-02 04:25 var/lib/mlocate/mlocate.db |
27 |
|
28 |
. Why can I create a file, which afterwards I am not allowed to read? |
29 |
|
30 |
Cheers! |
31 |
mcc |