Ecryptfs: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:Linux ==Tipps&Tricks== ===ecryptfs-mount-private -> mount: No such file or directory=== ====Problem==== <source lang=bash> user@host:~$ ecryptfs-…“)
 
m (Text replacement - "</source" to "</syntaxhighlight")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Kategorie:Linux]]
[[Category:Linux]]
==Tipps&Tricks==
==Tipps&Tricks==
===ecryptfs-mount-private -> mount: No such file or directory===
===ecryptfs-mount-private -> mount: No such file or directory===
====Problem====
====Problem====
<source lang=bash>
<syntaxhighlight lang=bash>
user@host:~$ ecryptfs-mount-private  
user@host:~$ ecryptfs-mount-private  
Enter your login passphrase:
Enter your login passphrase:
Line 9: Line 9:
mount: No such file or directory
mount: No such file or directory
user@host:~$  
user@host:~$  
</source>
</syntaxhighlight>
The keys are correctly unlocked
The keys are correctly unlocked
<source lang=bash>
<syntaxhighlight lang=bash>
user@host:~$ keyctl list @u
user@host:~$ keyctl list @u
2 keys in keyring:
2 keys in keyring:
1013878144: --alswrv  2223  2223 user: affecaffeeaffe01
1013878144: --alswrv  2223  2223 user: affecaffeeaffe01
270316877: --alswrv  2223  2223 user: affecaffeeaffe02
270316877: --alswrv  2223  2223 user: affecaffeeaffe02
</source>
</syntaxhighlight>
But no luck:
But no luck:
<source lang=bash>
<syntaxhighlight lang=bash>
$ ls -al
$ ls -al
total 20
total 20
Line 27: Line 27:
lrwxrwxrwx 1 root    root  52 Dez  7 09:12 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt
lrwxrwxrwx 1 root    root  52 Dez  7 09:12 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt
lrwxrwxrwx 1 root    root  56 Dez  7 09:11 ecryptfs-mount-private.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop
lrwxrwxrwx 1 root    root  56 Dez  7 09:11 ecryptfs-mount-private.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop
</source>
</syntaxhighlight>


====Workaround====
====Workaround====
<source lang=bash>
<syntaxhighlight lang=bash>
user@host:~$ keyctl link @u @s
user@host:~$ keyctl link @u @s
user@host:~$ ecryptfs-mount-private
user@host:~$ ecryptfs-mount-private
user@host:~$  
user@host:~$  
</source>
</syntaxhighlight>

Latest revision as of 04:47, 26 November 2021

Tipps&Tricks

ecryptfs-mount-private -> mount: No such file or directory

Problem

user@host:~$ ecryptfs-mount-private 
Enter your login passphrase:
Inserted auth tok with sig [affecaffeeaffe00] into the user session keyring
mount: No such file or directory
user@host:~$

The keys are correctly unlocked

user@host:~$ keyctl list @u
2 keys in keyring:
1013878144: --alswrv  2223  2223 user: affecaffeeaffe01
270316877: --alswrv  2223  2223 user: affecaffeeaffe02

But no luck:

$ ls -al
total 20
drwx------ 3 ansible admin  8 Dez  7 09:12 .
drwxr-xr-x 6 root    root   6 Dez  7 09:10 ..
lrwxrwxrwx 1 root    root  32 Dez  7 09:11 .Private -> /home/.ecryptfs/ansible/.Private
lrwxrwxrwx 1 root    root  33 Dez  7 09:11 .ecryptfs -> /home/.ecryptfs/ansible/.ecryptfs
lrwxrwxrwx 1 root    root  52 Dez  7 09:12 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt
lrwxrwxrwx 1 root    root  56 Dez  7 09:11 ecryptfs-mount-private.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop

Workaround

user@host:~$ keyctl link @u @s
user@host:~$ ecryptfs-mount-private
user@host:~$