1.新建一个没有家目录的用户openstack2.复制/etc/skel为/home/openstack3.改变/home/openstack及其内部的文件的属主,属组均为openstack4./home/openstack及其内部的文件,属组和其他用户没有任何访问权限[root@localhost~]#useradd-Mopenstack
[root@localhost~]#ls-l/home/op..
分类:
系统相关 时间:
2014-05-27 04:18:58
阅读次数:
523
场景描述:一直以来都以为fdisk-l显示的Id代表的是文件系统的格式,比如ext4ext3ext2等等。实际上是标注为linux类型的文件系统,适合于linux文件系统类型。[root@bogonDesktop]#fdisk-lDeviceBootStartEndBlocksIdSystem/dev/sdb11130610490413+83Linux其中Id显示的是Linux相关..
分类:
其他好文 时间:
2014-05-27 04:18:23
阅读次数:
1125
1.创建一个用户mandriva,其ID号为2002,基本组为distro(组ID为3003),附加组为linux[root@localhost~]#groupadd-g3003distro
[root@localhost~]#tail-1/etc/group
distro:x:3003:
[root@localhost~]#groupaddlinux
[root@localhost~]#tail-1/etc/group
linux:x:3004:[root@loca..
分类:
系统相关 时间:
2014-05-27 03:37:39
阅读次数:
409
使用root账户登录系统1.用安装时的账户给root设定密码sudopasswdroot允许root远程ssh登录sudovi/etc/ssh/sshd_configPermitRootLoginyessudoservicesshrestart查询软件包是否安装dpkg-l|greppackage-name查看已安装软件包内的文件dpkg-Lpackage-name查询文件所对应的软件包dpkg..
分类:
其他好文 时间:
2014-05-27 03:16:54
阅读次数:
176
Digital Roots
时间限制: 1 Sec 内存限制: 128 MB
提交: 91 解决: 29
[提交][状态][论坛]
题目描述
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single d...
分类:
其他好文 时间:
2014-05-22 13:01:21
阅读次数:
223
最近翻出自己以前存的黑防的杂志,又兴致勃勃的看起来,索性把自己的学得记下来,今天的话题是Bootkit,首先介绍下所谓的Bootkit这个技术,其实就是Rootkit的增强版,所以还是先介绍Rootkit吧,Rootkit就是入侵者为了隐藏自己的踪迹和保存root权限的工具(也可以说是一种技术),同样这里Bootkit的目的也一样,这里就是不扩展讲rootkit的实现了,因为这里涉及windows...
分类:
其他好文 时间:
2014-05-22 12:27:45
阅读次数:
217
题目:
链接:点击打开链接
算法:
赤裸裸的并查集。
代码:
#include
#include
#include
using namespace std;
int n,m;
int root[1010];
int find(int x)
{
int r = x;
while(root[r] != r)
r = root[r];
...
分类:
其他好文 时间:
2014-05-22 10:36:30
阅读次数:
219
[root@localhost ~]# date -R // 查看时区
Mon, 19 May 2014 10:18:46 +0000
[root@localhost ~]# tzselect // 设置修改时区
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean....
分类:
其他好文 时间:
2014-05-20 15:49:50
阅读次数:
319
iptables惹的祸
[root@localhost ~]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ...
分类:
其他好文 时间:
2014-05-20 15:10:34
阅读次数:
249
出现此情况,应该是使用了gradle wrapper时候,创建工程时使用的gradle版本比当前使用的版本低得情况。此时log会提示 去修改 project_root/gradle/wrapper/gradle-wrapper.properties这个文件中
distributionUrl=http\://services.gradle.org/distributions/gradle-1.1...
分类:
其他好文 时间:
2014-05-20 14:01:16
阅读次数:
239