jetrix 回复于:2005-08-13 14:58:59 |
用root把那个目录权限改成700就行了。 |
vcynosure 回复于:2005-08-13 15:12:41 |
当然有这种工具了,看看下面的信息。。。。。
[relaxbsd] ~# man cryptdir CRYPTDIR(1) CRYPTDIR(1) NAME cryptdir - encrypt/decrypt all files in a directory SYNOPSIS cryptdir [ dir ] decryptdir [ dir ] INTRODUCTION cryptdir encrypts all files in the current directory (or the given directory if one is provided as an argument). When called as decrypt- dir (i.e., same program, different name), all files are decrypted. NOTES When encrypting, you are prompted twice for the password as a precau- tionary measure. It would be a disaster to encrypt files with a pass- word that wasn't what you intended. In contrast, when decrypting, you are only prompted once. If it's the wrong password, no harm done. Encrypted files have the suffix .crypt appended. This prevents files from being encrypted twice. The suffix is removed upon decryption. Thus, you can easily add files to an encrypted directory and run crypt- dir on it without worrying about the already encrypted files. BUGS The man page is longer than the program. SEE ALSO "Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Pro- grams" by Don Libes, O'Reilly and Associates, January 1995. AUTHOR Don Libes, National Institute of Standards and Technology 1 January 1993 CRYPTDIR(1) |
剑心通明 回复于:2005-08-13 15:14:13 |
楼主要的是打开需要密码的,不仅仅是让人无权限打开,即自己的用户密码被盗以后打开的时候也需要输入密码,不知道这个东西有没有,很感兴趣 |
gvim 回复于:2005-08-13 17:08:48 |
对,我的目的就如剑心通明所说。
另外 netbsd下面没有cryptdir这个东西啊。 |
gvim 回复于:2005-08-13 21:12:27 |
up |
剑心通明 回复于:2005-08-14 09:13:12 |
desktop# cryptdir /tmp/test
cryptdir: Command not found. ?还需要安装什么? |
黑夜编码人 回复于:2005-08-15 00:33:02 |
cryptdir 是 expect 中的一个工具,安装 expect 之后就有了。 |
剑心通明 回复于:2005-08-15 10:25:23 |
[quote:7a61696b48="黑夜编码人"]cryptdir 是 expect 中的一个工具,安装 expect 之后就有了。[/quote:7a61696b48]
怎么没作用啊,cryptdir某个目录之后好像没什么作用,照样能看、编辑啊,也不需要提供密码,只是其他用户访问的时候是read-only的,就这功能吗? |
vcynosure 回复于:2005-08-15 10:52:08 |
[quote:bf81d82650="剑心通明"]
怎么没作用啊,cryptdir某个目录之后好像没什么作用,照样能看、编辑啊,也不需要提供密码,只是其他用户访问的时候是read-only的,就这功能吗?[/quote:bf81d82650] [relaxbsd] /home/test# cat 2/1.txt hello [relaxbsd] /home/test# cryptdir 2 Password: Again: . [relaxbsd] /home/test# cat 2/1.txt.crypt 出来是不可读的非法字符,发到cu上变了样,内容如下 \uffff\uffffkyy" |
剑心通明 回复于:2005-08-15 11:23:11 |
[quote:e745aae229="vcynosure"]] /home/test# cat 2/1.txt.crypt
出来是不可读的非法字符,发到cu上变了样,内容如下 \uffff\uffffkyy"[/quote:e745aae229] desktop# cat temp.txt.crypt 111 23333 我的怎么还能正常显示? |
congli 回复于:2005-08-15 12:46:23 |
奇怪,怎么你的会这样? |
gvim 回复于:2005-08-15 13:18:29 |
呵呵,看来剑心是用到盗版的了。:)
谢谢上面热心帮助的朋友。 |
剑心通明 回复于:2005-08-15 15:45:42 |
晕,rehash不管用,重启才管用,faint |
vcynosure 回复于:2005-08-19 14:23:36 |
补充下,cryptdir只能对一级目录下的文件加密,如果有多级目录命令会提示错误,不过如果只是用来加密数据,可以考虑用tar打包后再加密,呵呵 :P :P :P |
linuxunix1 回复于:2005-08-19 16:03:48 |
对,cryptdir只能对一级目录下的文件加密,有没有直接对下面有子目录的文件夹直接加密的工具呢? |