ecryptfs do nor work for regurlar user

Bug #1741917 reported by Paolo Mozzati on 2018-01-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Undecided
Unassigned

Bug Description

Hi I was trying to create a shared encrypted folder on my linux system. I would like that regular users of a specific group can mount that folder. So i followed this archlinux guide https://wiki.archlinux.org/index.php/ECryptfs#Manual_setup.
Here some details:

$ ls /ets/fstab
/var/shared/idocumenti /var/shared/idocumenti_mounted ecryptfs noauto,rw,relatime,user,ecryptfs_fnek_sig=123b26ec53237bcb,ecryptfs_sig=123b26ec53237bcb,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_unlink_sigs 0 0

As user1:
$ ecryptfs-insert-wrapped-passphrase-into-keyring .ecryptfs/wrapped-passphrase
Passphrase:
Inserted auth tok with sig [123b26ec53237bcb] into the user session keyring
$ mount -i /var/shared/idocumenti_mounted/
mount: /var/shared/idocumenti_mounted: mount(2) system call failed: No such file or directory.

Doing the same as root:
# ecryptfs-insert-wrapped-passphrase-into-keyring /home/user1/.ecryptfs/wrapped-passphrase
Passphrase:
Inserted auth tok with sig [123b26ec53237bcb] into the user session keyring
[root@fedora-dell ~]# mount -i /var/shared/idocumenti_mounted/

And I manage to mount encrypted folder.

Linux fedora-dell 4.14.11-300.fc27.x86_64 #1 SMP Wed Jan 3 13:52:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers