1.sudo apt install
sudo apt-get install ecryptfs-utils
sudo modprobe ecryptfs
ecryptfs-setup-private
mount and umount
alias ms='echo "cd ;sudo mount -t ecryptfs .Private/ scrt/ ; cd scrt; tree ";cd ;sudo mount -t ecryptfs .Private/ scrt/ ;cd scrt;tree;'
alias ums='echo "cd ;sudo umount scrt/ ;";cd ;sudo umount scrt/ ;tree scrt;'
ecryptfs-setup-private --noautoumount
a bad news:
you can delelte file encrypt by other passwd.
setup the permission :
http://manpages.ubuntu.com/manpages/bionic/man1/ecryptfs-setup-private.1.html

本文介绍如何在Ubuntu/Debian系统中利用eCryptfs工具加密个人文件夹。通过简单的命令行操作,如安装eCryptfs工具、挂载加密文件夹等步骤,实现对敏感数据的安全保护。
8484

被折叠的 条评论
为什么被折叠?



