上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

Encrypt files selected on GUI and generate symbolic links using ecryptfs

move2Ecryptfs1.txt
This script works on debian wheezy.
This script moves each of selected files into some directory (the name of which is a number) in ecryptfs decrypted directory (which is $dir3 in this script) so that all the selected files are encrypted when ecryptfs is not mounted. This script generates a symbolic link (to the moved file) on the original directory where the original file existed.
This script requires "ecryptfs-utils", "zenity" and "readlink" pacakges. If they are not installed, install them before executing this script.

Required conditions are:
1) ecryptfs is configured so that all the files and directories in /home/USER_NAME/.Private (you can change it by modifying letters just after "dir1=" in this script) is encrypted when ecryptfs is not mounted and is decrypted in /media/data/Decrypted (you can change it by modifying letters just after "dir3=" in this script).
2) /home/USER_NAME/.Private (you can change it by modifying letters just after "dir1=" in this script) is a symbolic link to /media/data/Encrypted (you can change it by modifying letters just after "dir2=" in this script).
3) The encrypted files and directories in /media/data/Encrypted (you can change it by modifying letters just after "dir2=" in this script) are decrypted in /media/data/Decrypted (you can change it by modifying letters just after "dir3=" in this script).
4) Symbolic links are not copied to /media/data/Decrypted (you can change it by modifying letters just after "dir3=" in this script).

テーマ : Linux
ジャンル : コンピュータ

プロフィール

kiyoshi

Author:kiyoshi
FC2ブログへようこそ!

最新記事
最新コメント
最新トラックバック
月別アーカイブ
カテゴリ
検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QRコード
since 2011/9/25
現在の閲覧者数:
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。