#!/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-12 13:48:00
#!/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