Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # script by Phil Stokes, applehelpwriter.com
- lw="/Library/Preferences/com.apple.loginwindow"
- # dlu="/Library/Preferences/com.apple.preferences.accounts"
- printf "Current users:\n%s `w`"
- declare -a arr=("daemon" "nobody" "root" "Guest")
- printf " User\tID\n"
- for i in `dscl . -list /Users | grep -v '^_'`;
- do
- if [[ ! "${arr[@]}" =~ "$i" ]]; then
- k=`id -u $i`
- printf "\t%s\t\t%s\n $i $k"
- fi
- done
- printf "\n\nLoginwindow: %s `defaults read "$lw"`"
- # printf "\n\nDeleted Users: %s `defaults read "$dlu"`"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement