免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 6410 | 回复: 15
打印 上一主题 下一主题

目录的加密? [复制链接]

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-13 14:04 |只看该作者 |倒序浏览
有没有对整个目录加密的方法或软件?即使是对普通用户自己的目录经过加密之后,其他人取得了root权限也必须经过密码检验才能 察看、取得、修改 目录中的文件。
谢谢。

论坛徽章:
0
2 [报告]
发表于 2005-08-13 14:58 |只看该作者

目录的加密?

用root把那个目录权限改成700就行了。

论坛徽章:
0
3 [报告]
发表于 2005-08-13 15:12 |只看该作者

目录的加密?

当然有这种工具了,看看下面的信息。。。。。
[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)

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
4 [报告]
发表于 2005-08-13 15:14 |只看该作者

目录的加密?

楼主要的是打开需要密码的,不仅仅是让人无权限打开,即自己的用户密码被盗以后打开的时候也需要输入密码,不知道这个东西有没有,很感兴趣

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
5 [报告]
发表于 2005-08-13 17:08 |只看该作者

目录的加密?

对,我的目的就如剑心通明所说。
另外 netbsd下面没有cryptdir这个东西啊。

论坛徽章:
2
亥猪
日期:2014-03-19 16:36:35午马
日期:2014-11-23 23:48:46
6 [报告]
发表于 2005-08-13 21:12 |只看该作者

目录的加密?

up

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
7 [报告]
发表于 2005-08-14 09:13 |只看该作者

目录的加密?

desktop# cryptdir /tmp/test
cryptdir: Command not found.

?还需要安装什么?

论坛徽章:
0
8 [报告]
发表于 2005-08-15 00:33 |只看该作者

目录的加密?

cryptdir 是 expect 中的一个工具,安装 expect 之后就有了。

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
9 [报告]
发表于 2005-08-15 10:25 |只看该作者

目录的加密?

[quote]原帖由 "黑夜编码人"]cryptdir 是 expect 中的一个工具,安装 expect 之后就有了。[/quote 发表:

怎么没作用啊,cryptdir某个目录之后好像没什么作用,照样能看、编辑啊,也不需要提供密码,只是其他用户访问的时候是read-only的,就这功能吗?

论坛徽章:
0
10 [报告]
发表于 2005-08-15 10:52 |只看该作者

目录的加密?

原帖由 "剑心通明" 发表:

怎么没作用啊,cryptdir某个目录之后好像没什么作用,照样能看、编辑啊,也不需要提供密码,只是其他用户访问的时候是read-only的,就这功能吗?


[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"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP