systemtap是一款非常强大内核调试工具,可以debug很多关于kernel层的问题。Linux是通过PAM模块检测用户信息和认证信息的,从而确定一个用户是否可以登录系统,利用这个知识点,使用systemtap捕获一下pam_unix.so该动态库文件的函数调用,获得用户在ssh远程登录时的用户
分类:
其他好文 时间:
2016-03-03 14:44:11
阅读次数:
175
1. 扼要重述 对于函数$f\in\mathcal{F}$, 其经验风险为 $\hat{R}(f)=\frac{1}{n}\sum\limits_{i=1}^{n}l(f(X_{i}),Y_{i})$ 翻译自 CS281B/Stat241B (Spring 2008) 统计学习理论 授课人:Pete
分类:
其他好文 时间:
2016-03-01 22:39:59
阅读次数:
939
来这个公司第一件事就是推出了salt,因为要结合自动化上线使用salt-net-api获取tocken1.curl-khttp://127.0.0.1:8000/login-H"Accept:application/x-yaml"-dusername="saltapi"-dpassword="abc/123"-deauth=‘pam‘2.curl-khttp://192.168.10.169:8000/-H"Accept:application/x-y..
分类:
其他好文 时间:
2016-03-01 19:11:25
阅读次数:
127
测试自签名的ssl证书 首先执行如下命令生成一个key openssl genrsa -des3 -out ssl.key 1024 然后他会要求你输入这个key文件的密码。不推荐输入。因为以后要给nginx使用。每次reload nginx配置时候都要你验证这个PAM密码的。由于生成时候必须输入密
分类:
Web程序 时间:
2016-02-22 17:28:25
阅读次数:
205
1、安装SAMBA yum -y install samba samba-client samba-common 2、修改文件打开数 vi /etc/security/limits.conf 最后添加 * soft nofile 65535 * hard nofile 65535(需重启机器) 3、
分类:
Windows程序 时间:
2016-02-22 15:21:49
阅读次数:
2812
#include <stdio.h> #include <limits.h> #include <string.h> unsigned character_offset(unsigned bit_number); unsigned bit_offset(unsigned bit_number); /
分类:
其他好文 时间:
2016-02-21 22:43:47
阅读次数:
214
1 #include<iostream> 2 #include<string> 3 #include <limits> 4 using namespace std; 5 6 int main() 7 { 8 cout << "type: \t\t" << "************size*****
分类:
编程语言 时间:
2016-02-20 22:58:27
阅读次数:
478
出处:http://limits.cnblogs.com 我们来看看几个基本的HTML页面 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1
分类:
Web程序 时间:
2016-02-19 09:08:19
阅读次数:
183
centos6.5系统下,发现一个问题,history-c后,历史命令被清空,但退出CRT再登入时发现还有历史命令,这是什么情况呢?[root@localhost~]#find/-name*history#查找相关文件/root/.bash_history/usr/bin/ck-history/usr/share/doc/pam-1.1.1/txts/README.pam_pwhistory/var/lib/..
分类:
其他好文 时间:
2016-02-18 12:09:23
阅读次数:
163
系统重启后ngixreload不生效原因分析这是一种比较少见,困扰我很久的问题,虽然这个问题很简单,但是找到根本原因还是费了不少时间,现在把分析过程分享如下。前提:需要对Linux系统启动过程、Nginx进程启动过程及进程跟踪有一定的理解。一,Nginxreload过程分析:经过查看官网..
分类:
其他好文 时间:
2016-02-17 19:23:13
阅读次数:
233