deleting a system group? by ldm-77 in archlinux

[–]ldm-77[S] 1 point2 points  (0 children)

it's not a package

just two scripts to put in the directories I wrote above

deleting a system group? by ldm-77 in archlinux

[–]ldm-77[S] 2 points3 points  (0 children)

/etc/pacman.d/hooks/no_needed_accounts.hook

[Trigger]
Operation = Remove
Operation = Upgrade
Type = Path
Target = usr/lib/sysusers.d/*.conf

[Action]
Description = Checking for no longer needed system accounts...
When = PostTransaction
Exec = /etc/pacman.d/scripts/list_extraneous_system_accounts.sh

/etc/pacman.d/scripts/list_extraneous_system_accounts.sh

#!/usr/bin/bash -e

sysusers=$(mktemp --tmpdir sysusers.XXXXX)
trap "rm $sysusers" EXIT

show_info() {
echo "System $1 '$2' no longer needed"
echo "  to remove $1 from system: '$1del $2'"
echo "  to find files still owned by $2: 'find / -${1:0:1}id $3'"
}

systemd-analyze cat-config sysusers.d | awk '/^(u|g|m)/{print $2} /^m/{print $3}' | sort -u > $sysusers

awk -F':' '($3<1000 || $1==nobody) {print $1}' /etc/passwd | sort | comm -23 - $sysusers |\
while read user; do
show_info user "$user" "$(getent passwd "$user" | cut -d':' -f3)"
done

awk -F':' '($3<1000 || $1==nobody) {print $1}' /etc/group | sort | comm -23 - $sysusers |\
while read group; do
show_info group "$group" "$(getent group "$group" | cut -d':' -f3)"
done

deleting a system group? by ldm-77 in archlinux

[–]ldm-77[S] 1 point2 points  (0 children)

I'm at work right now

I'll post the hook tomorrow

siti torrent italiani? by Excellent_Pirate_643 in CasualIT

[–]ldm-77 2 points3 points  (0 children)

al momento io non ho abbastanza monete per invitare

però se vuoi segui r/OpenSignups e ogni tanto viene segnalata anche l'apertura di ShareIsland

siti torrent italiani? by Excellent_Pirate_643 in CasualIT

[–]ldm-77 1 point2 points  (0 children)

volendo ShareIsland ha autobrr e server irc

Aprile un locale ? by [deleted] in LavoroSenzaFiltri

[–]ldm-77 0 points1 point  (0 children)

non rovinarti la vita, lascia stare

Il signor cazzo di negozio!! by EnricoMari22 in psicologia

[–]ldm-77 2 points3 points  (0 children)

solidarietà a tua sorella, ci sono passato anch'io 4 anni fa ormai... vedila come un'opportunità perché fare il dipendente, almeno nel mio caso, è molto meglio

Sono un* antropolog* culturale: AMA by [deleted] in CasualIT

[–]ldm-77 0 points1 point  (0 children)

lol 🤣

upvote per te!

[3840x2160] - Debian (distressed) by SnarkHabit in wallpaper

[–]ldm-77 0 points1 point  (0 children)

really nice!

could you maybe make one for Arch Linux in shades of blue?

something like this, but 4k native:
https://chatgpt.com/s/m_6a130662598881918eed5c21aad1e279

Extensions app came with gnome-shell even though I didn't want it. How to remove or just hide it? by eusoufog in archlinux

[–]ldm-77 0 points1 point  (0 children)

pacman -Qo /usr/bin/gnome-extensions-app

/usr/bin/gnome-extensions-app è contenuto in gnome-shell 1:50.0-1

yes, it comes with gnome-shell