Use apt hook to modify permissions after upgrade of wireshark.

The previous solution did not work for the graphical user interface.
Group membership did only show up on the console.
This commit is contained in:
Andreas B. Mundt 2023-12-07 15:33:56 +01:00
parent d29a192675
commit e89ecc1f3a

View file

@ -64,10 +64,13 @@
http_proxy: '' # this is needed to avoid ttf-mscorefonts-installer picking up aptcacher http_proxy: '' # this is needed to avoid ttf-mscorefonts-installer picking up aptcacher
- name: Add wireshark group membership to users to allow dumping packets - name: Make sure wireshark works for all users after installation and upgrades
ansible.builtin.lineinfile: ansible.builtin.copy:
path: /etc/security/group.conf dest: /etc/apt/apt.conf.d/92wireshark4all
line: '*;*;*;Al0000-2400;wireshark' content: |
## Modify permissions after installation/upgrade to allow all
## users dumping packages on network interfaces for wireshark
DPkg::Post-Invoke {"/usr/bin/chmod o+x /usr/bin/dumpcap || true"; };
- name: Create firefox policies directory - name: Create firefox policies directory
@ -181,7 +184,6 @@
#- name: Disable automatic lock screen and user specific modifications #- name: Disable automatic lock screen and user specific modifications
# ansible.builtin.copy: # ansible.builtin.copy:
# path: /etc/xdg/kscreenlockerrc # path: /etc/xdg/kscreenlockerrc
# create: true
# content: | # content: |
# [Daemon][$i] # [Daemon][$i]
# Autolock=false # Autolock=false