Linux
文章平均质量分 92
小时候没少挨打
为了待会去码头整点薯条
展开
-
Grub 引导修复
IntroductionGNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project. GRUB is the reference implementation of the Free Software Foundation's Multiboot Specif原创 2015-08-06 13:20:16 · 2099 阅读 · 0 评论 -
linux用户切换后显示-bash-4.1$
新建用户之后出现了类似如下的情况-bash-4.1$出现这种情况有很多原因,大多数是指定了用户家目录导致的。所以使用这个解决:cp -a /etc/skel/. 新的家目录就可以解决这个问题原创 2017-04-01 18:12:33 · 2060 阅读 · 0 评论 -
linux 用户行为审计
在/etc/profile文件下添加如下shell即可(注意文件的权限问题!!)if ! test -z "$BASH_EXECUTION_STRING" ; then echo "===== $(date "+%F %T") $USER nologin cmd: $BASH_EXECUTION_STRING" >>/var/log/command.log el转载 2017-04-21 14:07:21 · 2949 阅读 · 0 评论 -
利用rsyslog创建syslog center
确定打算用udp还是tcp进行传输。配置文件路径为:/etc/rsyslog.conf配置选项为:# Provides UDP syslog reception#$ModLoad imudp#$UDPServerRun 514# Provides TCP syslog reception#$ModLoad imtcp#$InputTCPServerRun 514可以原创 2017-05-18 11:08:20 · 410 阅读 · 0 评论 -
利用rsyslog 配置用户行为日志审计
在/etc/profile.d/建立一个clinet.sh文件vim /etc/profile.d/client.sh输入:export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger -p local4.info ["LOCAL|`grep IPADDR /etc/sysconfig/network原创 2017-05-09 17:14:53 · 1702 阅读 · 1 评论