Mount encrypted folder on synology nas via terminal

خرید بک لینک

I was searching for a solution to mount an encrypted folder on my synology nas via terminal and found out that DSM uses ecryptfs. Using mount.ecryptfs $ENCRYPT_DIR_PATH $MOUNTED_DIR_PATH actually works but the mounted directory with decrypted data doesn't show in the samba shares or in the web GUI. Further i found out that synology made a program/script to solve this. synoshare --enc_mount $ENCRYPT_DIR_PATH $PASSWORD should mount the folder and make it visible but sadly it crashes.

Error SYNOShareEncShareMount() failed.[0x1400 share_db_get.c:31]

Does anyone know what the problem is here?


SECURITY WARNING:

Someone who searches a way to do this might stumble upon this thread, so i want to wa you about something i read here. If you use synoshare --enc_mount $ENCRYPT_DIR_PATH $PASSWORD your password will be in plain text on the terminal and also in /var/log/bash_history.log which is obviously a security flaw. If you scroll down on the linked page you find a post from user fairlane in which he wrote a small script to use synoshare without revealing the password. For the sake of completeness i post it here.

echo -n "Enter Share Password: "
read -s passwordVariable
echo ""
/usr/syno/sbin/synoshare --enc_mount $1 $passwordVariable

- - , .
.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 293 تاريخ: پنجشنبه 24 تير 1395 ساعت: 0:33

صفحه بندی