first
This commit is contained in:
commit
b50fd16591
197 changed files with 41663 additions and 0 deletions
10
files/find_skels_to_update.sh
Normal file
10
files/find_skels_to_update.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
filename="$1"
|
||||
|
||||
for homedir in /home/*; do
|
||||
if cmp "/etc/skel/$filename" "$homedir/$filename" &>/dev/null; then
|
||||
owner_group=$(find $homedir -maxdepth 0 -printf '%u:%g')
|
||||
echo "$filename:$homedir:${owner_group%:*}:${owner_group#*:}"
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue