initial commit

main
Nicholas Hope 2022-11-03 22:41:51 -04:00
parent 00230fe82e
commit d96bb7e1c8
1 changed files with 28 additions and 0 deletions

28
dostuff.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
function getextras {
diff - "$1" |
grep '>' - |
cut -b 3-
}
sort users.txt > usrtmp
mv usrtmp users.txt
ls /home |
sort |
getextras users.txt |
while read name; do
echo deluser $name
done
sort admins.txt > admtmp
mv admtmp admins.txt
grep 'adm' /etc/group |
cut -f 4 -d ':' |
tr ',' '\n' |
sort |
getextras admins.txt
echo sudo ufw enable