- 博客(2)
- 收藏
- 关注
原创 批量ping检测主机状态
方法一将ip地址写入ip.txt[root@zeng ~]# cat ping.sh#!/bin/bashcat ip.txt |while read line;doip=echo $line |awk '{print $1}'ping -c 3 -w 2 $ip &> /dev/nullif [ $? -eq 0 ];thenecho $ip liveelse...
2019-06-02 19:41:44
1008
原创 除wheel组成员外,禁止普通用户su - root
涉及两个配置文件:1、/etc/pam.d/su 加以下参数auth required pam_wheel.so use_uid2、/etc/login.defs 加以下参数SU_WHEEL_ONLY yes验证添加用户:[root@zeng ~]# useradd zeng[root@zeng ~]# su zeng[zeng@zeng root]$ su -P...
2019-06-02 19:27:43
1386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅