问题如下:#yuminstall
pam-devel#Thissystem
isnotregisteredtoRedHatSubscriptionManagement.Youcanuse
subscription-managertoregister.Settingup
InstallProcessNothingtodo如下图:提示系统没有在redhat上注册。如果使用redhat的yum源需注册付费,费时费力,因此试图寻找..
分类:
其他好文 时间:
2015-07-21 15:08:18
阅读次数:
100
源码如下:#include
#include
#include using namespace std;int main()
{ cout << "bool: \t\t" << "所占字节数:" << sizeof(bool);
cout << "\t最大值:" << (numeric_limits::...
分类:
编程语言 时间:
2015-07-19 15:07:05
阅读次数:
143
首先介绍下kernel.sem 这个参数 cat?/proc/sys/kernel/sem
250?????32000???32??????128
或者
ipcs?-ls
------?Semaphore?Limits?--------
max?number?of?arrays?=?128
max?semaphore...
分类:
其他好文 时间:
2015-07-15 15:22:41
阅读次数:
167
一.安装ldap[root@dev~]#yuminstallopenldapopenldap-*-y
[root@dev~]#yuminstallnscdnss-pam-ldapdnss-*pcrepcre-*-y二.配置ldap[root@dev~]#cd/etc/openldap/
[root@devopenldap]#ll
total16
drwxr-xr-x.2rootroot4096Jul1320:10certs
-rw-r--r--.1rootroot282Jun2117:19ldap..
分类:
其他好文 时间:
2015-07-14 06:26:11
阅读次数:
198
题意:数字反转思路:醉了,提交了好几次,难点不在于怎么反转,而是判断是否益处,原题中给的是int,4个字节,32位,开始不知道怎么判断。现在知道了是limits.h中的INT_MIN和INT_MAX作为int的下界和上界。代码: long long int s = 0; while(x!...
分类:
其他好文 时间:
2015-07-10 14:44:54
阅读次数:
117
修改linux的软硬件限制文件/etc/security/limits.conf.在文件尾部添加如下代码:*softnofile65535*hardnofile65535保存并推出。命令说明:dominotypeitemvaluedomino是以符号@开头的用户名或组名,*表示所有用户,type设置为hardorsoft。item指定想限制的资源。如cpu,corenofil..
分类:
系统相关 时间:
2015-07-08 22:55:02
阅读次数:
265
To enforce the ability of an object to hide its data, the compiler limits the scope of instance variables—that is, limits their visibility within the ...
分类:
其他好文 时间:
2015-07-08 22:10:42
阅读次数:
157
#vsftpd 530 Login incorrect这个问题的解决办法: vsftpd用的是vsftpd: version 3.0.2,系统用户是nologin的 # 1, 检查/etc/vsftpd/vsftpd.conf配置 ``` local_enable=YES pam_service_name=vsftpd //**ubuntu是...
分类:
其他好文 时间:
2015-07-08 14:59:24
阅读次数:
170
AIX Study之--用户访问系统资源限制配置
Aix 用户使用的系统资源限制包括两个概念 --- 硬限制(hard limits) 和软限制(soft limits)。hard limits自Aix 4.1版本开始引入。hard limits 应由Aix系统管理员设置,只有security组的成员可以将此值增大,用户本身可以减小此限定值,但是其更改将随着该用户从系统退出而失效。...
分类:
其他好文 时间:
2015-07-07 16:52:47
阅读次数:
125
vsftp使用虚拟目录1、在#vi/home/logins.txt#####建立一个logins.txt的文件,单行为用户名,双行为密码2、#db_load-T-thash-f/home/logins.txt/etc/vsftpd_login.db#####建立数据库文件并设置文件属性.3、vi/etc/pam.d/ftp插入如下两行#####建立认证文件4、useradd-d/home/vsft..
分类:
其他好文 时间:
2015-07-06 19:58:08
阅读次数:
118