shelltricks
Dies ist eine alte Version des Dokuments!
Shelltricks
Miscellaneous small shell scripts that I may or may not need again in the far future.
Check umask for all users
- check_user_umasks.sh
#!/bin/bash for user in $(awk -F: '{print $1}' /etc/passwd); do printf "%-20s" "$user" ; su -p -s /bin/bash -c 'umask' -l $user 2>/dev/null done
Original source: https://unix.stackexchange.com/a/82645
shelltricks.1581368618.txt.gz · Zuletzt geändert: 2020-02-10 22:03 von fanir