易截截图软件、单文件、免安装、纯绿色、仅160KB

使用sha256(512)算法加密linux密码

Linux帐户的密码加密后存放于/etc/shadow文件中。对于Redhat Enterprise版本,默认使用MD5算法,这个算法已经很不安全。很多经典的黑客教程都是教人拿到shadow文件后回去破解出root的密码,如果能用更难破解的sha算法加密密码无疑可以提高服务器的安全性。以下内容是综合了http://www.cyberciti.biz/faq/rhel-centos-fedora-linux-upgrading-password-hashing/ , http://kbase.redhat.com/faq/docs/DOC-15806 的内容而来,针对RHEL5.2以上版本。
显示当前密码加密算法:
# authconfig --test | grep hashing
输出:password hashing algorithm is md5
设置使用sha512算法:
# authconfig --passalgo=SHA512 --update
在我的RHEL5.3版中,提示unknown algorithm sha512, 使用了sha256,还没搞清楚是为什么。再次显示,已经更改为sha256算法。
最后,所有用户都需要重新设置密码才能生效。可以使用# chage -d 0 userName 强制所有用户下次登录修改密码。
在我用的archlinux上,设置方法不同。参考了WiKi上的内容:http://wiki.archlinux.org/index.php/SHA_Passwords
1.修改 /etc/pam.d/passwd文件
#%PAM-1.0
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so md5 shadow use_authtok
password required pam_unix.so md5 shadow nullok
把最后一行的md5用sha256替换
2.修改/etc/default/passwd文件
CRYPT=des 改为 CRYPT=sha256
3.所有用户重新修改密码。


相关文档:

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

Linux 引导过程内幕

 
Linux 引导过程内幕
http://www.lemote.com/bbs/redirect.php?goto=newpost&tid=1723
当系统首次引导时,或系统被重置时,处理器会执行一个位于已知位置处的代码。在个人计算机(PC)中,这个位置在基本输入/输出系统(BIOS)中,它保存在主板上的闪存中。嵌入式系统中的中央处理单元(CPU)会调用这个重置向 ......

linux网桥模式vlantrunk透传

 linux网桥模式vlantrunk透传
2007-12-27 08:30
首先使用vconfig创建vlan虚拟接口,并分别在两个接口上增加vlan100\vlan200\vlan300
vconfig add eth0 100
vconfig add eth0 100 
vconfig add eth0 300
vconfig add eth1 100
vconfig add eth1 200
vconfig add eth1 300
启用vlan端口
ifconfig eth0.10 ......

Linux 下 Squid 安装

目录
 
一、确保Linux 系统中装有NET-SNMP 协议... 1
1.Net-snmp 获取与安装... 1
2.Net-snmp 的配置... 1
3.Net-snmp 常用命令... 2
二、Squid. 3
1.检查linux是否存在squid老版本... 3
2.Squid 获取与安装... 3
3.Squid 配置... 4
4.Squid 测试... 4
5.Squid 常用命令... 5
6.Squid 其他... 6
7.Squid. ......

Linux下CHM查看工具汇总

 Linux下CHM查看工具汇总

http://www.ossw.com.cn/bbs/bencandy.php?id=2252&l_page=1


1. chmsee

homepage: http://211.92.88.40/~zhong/

requires: gtkhtml, libgnomevfs
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号