Linux系统与安全学习笔记(转)

Linux系统与安全学习笔记(转)[@more@]命令:

# chkconfig- updates and queries runlevel information for system services
启动脚步的自动化管理

#进程管理命令

killall -term xproc
//此方法比killall -9 xproc要好。因为-9参数只释放当前进程的资源并终止它,而它的子进程都变成defunct状态,直到操作系统来销毁它们。

pgrep, pkill - look up or signal processes based on name and other attributes
=====例子:=======
[root@localhost ~]# pgrep -fl bash
2736 -bash
2796 -bash

skill, snice - send a signal or report process status

#用户管理的命令
chage - change use password expiry informatin
==========================
[root@localhost ~]# chage -l vic
Last password change : 3月 10, 2006
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
===========================

getfacl - 浏览指定文件或目录的ACL.

/etc/securetty 文件控制根用户从何处可以进行登录,如果/etc/securetty不存在,那么根用户就可以从任何地点进行登录;如果/etc/securetty存在但没有内容,根用户不可以从任何设备上登录,只能通过su或sudo进行根用户访问。

#系统日志查看
/var/run/utmp /var/log/wtmp --登录记录文件,可以用who命令来查看。
/var/log 系统日志目录

lastb, last -- show listing of last logged in users

crypt - password and data encryption
crypt is the password encryption function. It is based on the Data Encryption Standard algorithm with variations intended (among other things) to discourage use of hardware implementations of a key search.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10617542/viewspace-949411/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10617542/viewspace-949411/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值