#!/bin/bash
del=$(cat /etc/passwd | grep "/bin/bash"|awk -F: ‘$3>=500 {print $1}‘)
for i in $del
do
/usr/sbin/userdel -r $i &> /dev/null
done
时间: 2024-10-27 10:24:39
#!/bin/bash
del=$(cat /etc/passwd | grep "/bin/bash"|awk -F: ‘$3>=500 {print $1}‘)
for i in $del
do
/usr/sbin/userdel -r $i &> /dev/null
done