Benutzer-Werkzeuge

Webseiten-Werkzeuge


shelltricks

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 -s /bin/bash -c 'umask' -l $user 2>/dev/null
done

Original source: https://unix.stackexchange.com/a/82645

shelltricks.txt · Zuletzt geändert: 2020-02-10 22:33 von fanir