Используйте ecryptfs с sshfs
Я пытаюсь использовать ecryptfs поверх sshfs, чтобы иметь возможность создавать, создавать и получать доступ к зашифрованному общему ресурсу на новом устройстве NAS.
Следующая команда mount работает как на NAS-устройстве, так и на моей локальной mancine:
mount -t ecryptfs /DATA/a_folder /DATA/another_folder
создать зашифрованную папку.
Я могу использовать
sshfs root@nashost:/DATA/some_folder /home/me/nas_box
на моей локальной машине, чтобы смонтировать папку из моего окна NAS. Однако, как только я установил его, если я попытаюсь использовать ecryptfs, как это
mount -t ecryptfs /home/me/nas_box /DATA/decrypted
тогда я получаю следующую ошибку
Error mounting eCryptfs: [-13] Permission denied
Check your system logs; visit <http://launchpad.net/ecryptfs>
Я смотрел в /var/log/messages
на обеих машинах, но там ничего нет. Я понятия не имею, возможно ли то, что я пытаюсь сделать, или какие журналы проверить, чтобы помочь мне.
Не уверен, что это имеет значение, но в окне NAS стоит Centos, а на моей локальной машине - Ununtu.
Совет будет с благодарностью получен.
только что нашел следующее в /var/log/syslog
mount.ecryptfs: could not resolve full path for source /home/me/nas_box [-13]
1 ответ
http://ubuntuforums.org/showthread.php?t=2024094
Hello all,
I am trying to mount SSHFS and then mount an ecryptfs encrypted directory inside of it. I have been able to do this with root. I have added the mounts to fstab with a user option so I can have non-root users mounting them. Using a non-root user I am able to mount SSHFS and I can mount an ecryptfs directory as long as the ecryptfs directory is not located within the SSHFS mount. When I try to mount the ecryptfs directory within an SSHFS directory using a non-root use I am presented with an error that there is a misconfiguration.
Anybody have any insight? I am stumped.
Thank You
Расширенный ответ 18 июля 2012 г. #2 Аватар для Seeked Seeked Seeked вне форума 5 Cups of Ubuntu
Re: SSHFS и ecryptfs
Use enfs instead of eCryptfs.
encfs works in the user space instead of the kernal space by default.
Last edited by Seeked; July 23rd, 2012 at 08:45 PM.