Chinaunix首页 | 论坛 | 博客
  • 博客访问: 682151
  • 博文数量: 111
  • 博客积分: 2109
  • 博客等级: 上尉
  • 技术积分: 1124
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-25 12:11
个人简介

通信码农,Emacs爱好者,业余IOS程序员,更业余的PM

文章分类

全部博文(111)

文章存档

2018年(2)

2016年(2)

2015年(2)

2014年(13)

2013年(21)

2012年(71)

分类: LINUX

2014-04-21 15:57:17

#########################################################################
Security 术语相关:

False Positive 假的阳性(误报) False Negative 假的阴性(漏报)
再来说说FP和FN在计算机领域中的意思,我喜欢把它们译为“误报”和“漏报”



粘着位
粘着位=1
如果一个权限为777目录有粘着位,每个用户都可以在这个目录下创建文件,但只能删除自己是所有者的文件。

Linux audit log full


7.4 Set Default umask for Users

The default umask determines the permissions of files created by users. The user creating the file has the discretion of making their files and directories readable by others via the chmod command. Users who wish to allow their files and directories to be readable by others by default may choose a different default umask by inserting the umask command into the standard shell configuration files (.profile, .cshrc, etc.) in their home directories.

Setting a very secure default value for umask ensures that users make a conscious choice about their file permissions. A default umask setting of 077 causes files and directories created by users to not be readable by any other user on the system. A umask of 027 would make files and directories readable by users in the same Unix group, while a umask of 022 would make files readable by every user on the system.

Note: The directives in this section apply to bash and shell. If other shells are supported on the system, it is recommended that their configuration files also are checked.

# 077 is too restrictive

==================================
 grub-md5-crypt

tstuser
$1$8qD7U1$A7fSSfLql3W9ZjQZvN7Wn1



#######################################################



《计算机网络安全与应用》贺思德 申浩如 科学出版社2007  http://netsecurity.ynu.edu.cn  附录A 端口号大全 
 

传输层TCP/UDP使用的端口号使用的端口号总表总表总表  
From Wikipedia, the free encyclopedia 
In computer networking, the protocols of the Transport Layer of the Internet Protocol Suite, 
most notably the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP), but also other protocols, use a numerical identifier for the data structures of the endpoints for host-to-host communications. Such an endpoint is known as a port and the identifier is the port number. The Internet Assigned Numbers Authority (IANA) is responsible for maintaining the 
official assignments of port numbers for specific uses.[1]
 
Contents 
1 Ranges  
2 Table legend  
3 Well known ports: 1 - 1023  
4 Registered ports: 1024–49151  
5 Dynamic and/or private ports: 49152–65535 
6 See also  

1. Ranges Ranges  
The port numbers are divided into three ranges: 

The Well Known Ports are those in the range 0–1023. On Unix-like operating systems, 
binding a communications socket to a port in this range requires administrative privileges 
or possessing CAP_NET_BIND_SERVICE capability[2]
.  
? The Registered Ports are those in the range 1024–49151.  

The Dynamic and/or Private Ports are those in the range 49152–65535. Randomly chosen port numbers out of this range are called ephemeral ports. These ports are not permanently assigned to any publicly defined application.  
IANA does not enforce adherence in use of port numbers to these assignments; it is simply a set of recommended uses. Sometimes applications use port numbers for different purposes than the official assignments suggest. This misuse may be, for example, by malicious software (e.g. Trojan horse) to intercept unsecured traffic or simply because no unique port exists for the application. 


#####################################
psacct命令统计用户进程


/etc/init.d/psacct status --- check the status of the psacct process.

你看到状态显示为处于禁用状态,不妨使用下列两个命令手动开启该服务。这两个命令将创建一个/var/account/pacct文件,并开启服务。
# chkconfig psacct on 
# /etc/init.d/psacct start 
Starting process accounting: [ OK ]

			
关闭服务
# chkconfig psacct off 
# /etc/init.d/psacct stop 
http://logo32.blog.163.com/blog/static/668116902012112810512719/
##########################################
 
关于linux命令chkconfig --list的问题答案:这是linux下的6种状态,说明HTTPD这个服务在0.1.2.3.4.6下是关闭的,在5下是开启的,0代表的是关机状态,6代表的是重启状态,1代表的是单用户模式,2是没有网络功能的多用户模式,3是有网络功能的多用户模式,4还没有定义,5是桌面模式,123都是用的命令行。 问题:chkconfig --list  httpd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:启用 6:关闭  bluetooth 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭  中 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭  分别代表什么意思呢?

			
  • nfslock 0:off 1:off 2:on 3:on 4:on 5:on 6:off

阅读(649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~