Sudo Insults restored after update

I don't think garuda-inxi is necessary for this.

System:
Kernel: 5.18.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=40526778-d9bd-42f4-954a-206e381d838b rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.25.1 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Micro-Star product: MS-7C91 v: 1.0
serial: <superuser required>
Mobo: Micro-Star model: MPG B550 GAMING EDGE WIFI (MS-7C91) v: 1.0
serial: <superuser required> UEFI: American Megatrends LLC. v: 1.70
date: 06/29/2021
Battery:
Device-1: hidpp_battery_0 model: Logitech M570 serial: <filter> charge: 45%
rechargeable: yes status: discharging
CPU:
Info: model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 built: 2021-22 process: TSMC n7 (7nm) family: 0x19 (25)
model-id: 0x50 (80) stepping: 0 microcode: 0xA50000C
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3051 high: 3307 min/max: 1400/4672 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 2992 2: 3307
3: 2990 4: 2992 5: 2993 6: 2993 7: 2993 8: 3041 9: 3285 10: 2993 11: 3096
12: 2993 13: 2993 14: 3181 15: 2992 16: 2993 bogomips: 121370
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: always-on, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Vega 10 XL/XT [Radeon RX 56/64] vendor: Gigabyte
driver: amdgpu v: kernel arch: GCN 5 process: GF 14nm built: 2017-20 pcie:
gen: 3 speed: 8 GT/s lanes: 16 ports: active: DP-1,DP-2
empty: DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 12:00.0
chip-ID: 1002:687f class-ID: 0300
Device-2: AMD Cezanne driver: N/A alternate: amdgpu arch: GCN 5.1
process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 30:00.0 chip-ID: 1002:1638
class-ID: 0300
Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 3-1:2 chip-ID: 046d:0825 class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1184x380mm (46.61x14.96")
s-diag: 1243mm (48.96")
Monitor-1: DP-1 mapped: DisplayPort-0 pos: bottom-l model: Dell P2714H
serial: <filter> built: 2014 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: DP-2 mapped: DisplayPort-1 pos: primary,top-right
model: Samsung U28D590 built: 2013 res: 2560x1440 hz: 60 dpi: 107
gamma: 1.2 size: 607x345mm (23.9x13.58") diag: 698mm (27.5") ratio: 16:9
modes: max: 3840x2160 min: 720x400
OpenGL:
renderer: AMD Radeon RX Vega (vega10 LLVM 13.0.1 DRM 3.46 5.18.5-zen1-1-zen)
v: 4.6 Mesa 22.1.1 direct render: Yes
Audio:
Device-1: AMD Vega 10 HDMI Audio [Radeon 56/64] driver: snd_hda_intel
v: kernel bus-ID: 3-1:2 pcie: chip-ID: 046d:0825 gen: 3 class-ID: 0102
speed: 8 GT/s serial: <filter> lanes: 16 bus-ID: 12:00.1
chip-ID: 1002:aaf8 class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 30:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 30:00.6 chip-ID: 1022:15e3
class-ID: 0403
Device-4: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
Sound Server-1: ALSA v: k5.18.5-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.0 running: no
Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 29:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp41s0 state: up mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 2a:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp42s0 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Drives:
Local Storage: total: 12.74 TiB used: 130.02 GiB (1.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD20EFRX-68EUZN0 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 0A82 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST2000DM001-1ER164
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: CC43 scheme: GPT
ID-4: /dev/sdd maj-min: 8:48 vendor: Western Digital
model: WD80EDAZ-11TA3A0 size: 7.28 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 0A81 scheme: GPT
ID-5: /dev/sde maj-min: 8:64 vendor: Samsung model: SSD 850 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
Partition:
ID-1: / raw-size: 931.02 GiB size: 931.02 GiB (100.00%)
used: 20.84 GiB (2.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
ID-2: /boot/efi raw-size: 501 MiB size: 500 MiB (99.80%)
used: 576 KiB (0.1%) fs: vfat dev: /dev/sdb2 maj-min: 8:18
ID-3: /home raw-size: 931.51 GiB size: 931.51 GiB (100.00%)
used: 53.15 GiB (5.7%) fs: btrfs dev: /dev/sde1 maj-min: 8:65
ID-4: /var/log raw-size: 931.02 GiB size: 931.02 GiB (100.00%)
used: 20.84 GiB (2.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
ID-5: /var/tmp raw-size: 931.02 GiB size: 931.02 GiB (100.00%)
used: 20.84 GiB (2.2%) fs: btrfs dev: /dev/sdb1 maj-min: 8:17
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 27.3 GiB used: 12.54 GiB (45.9%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 46.0 C
mem: 47.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1151
Info:
Processes: 435 Uptime: 1d 8h 19m wakeups: 23 Memory: 27.3 GiB
used: 17.26 GiB (63.2%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: 1850
pacman: 1845 lib: 514 flatpak: 5 Shell: fish v: 3.4.1 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.18
Garuda (2.6.4-1):
System install date:     2022-06-16
Last full system update: 2022-06-23 ↻
Is partially upgraded:   Yes
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            bluetooth-autoconnect.service

I know that I disabled the insults previously, is it a good idea for the update process ever undo that?

You're ***ing welcome.

Probably not. What was updated, and what did you change to disable the insults?

5 Likes
## Read drop-in files from /etc/sudoers.d
@includedir /etc/sudoers.d

The sudoers file is configured to allow drop-in files from /etc/sudoers.d, and it looks like the "insults" file just got updated:

 ╭─[email protected] in /etc as 🧙 took 6s
 ╰─λ ls -la /etc/sudo*
.rw-r--r-- 4.6k root 13 Jun 04:18  /etc/sudo.conf
.rw-r--r-- 9.8k root 13 Jun 04:18  /etc/sudo_logsrvd.conf
.r--r----- 3.3k root 13 Jun 04:18  /etc/sudoers

/etc/sudoers.d:
drwxr-x---   - root 23 Jun 19:53  .
drwxr-xr-x   - root 23 Jun 19:56  ..
.r--r-----  21 root 11 Mar 06:41  10-installer
.r--r----- 100 root 13 Jun 04:45  ctdb
.rwxr-x---  31 root 20 Jun 14:49  editor
.rwxr-x---  17 root 20 Jun 14:49  insults
.rwxr-x---  20 root 20 Jun 14:49  pwfeedback

Normally you'd get a .pacnew file for this kind of change; this is kind of an unusual case.

Have you considered just typing your password correctly? :thinking:

:point_up_2: Just kidding! :joy:

8 Likes

There is no backup directive for any file in this package.

At least the insults file should be backed up (for a pacnew) IMHO.
Maybe other packages would need to be checked for the same.

6 Likes

Next we start backing up every single drop-in? :face_with_monocle:

I don't know if you are joking now... :joy:
If it needs to be backed up (not override user's choice), then the answer is Yes! :person_shrugging:

Look it like this:
If it was /etc/pacman.conf should we overwrite it?
If it was /etc/ passwd should we overwrite it?
If it was /etc/ group should we overwrite it?
If it was /etc/ sudoers, which is the case, should we overwrite it?

Or answer the question :

How much damage will happen, if the user (local admin) has modified the contents / values in the file and can we accept this to be our fault?

4 Likes

If the drop-ins are in /etc and there is no way to override them, why wouldn't they be backed up? How else does the user change configuration?

6 Likes

This is actually a fair point. I'm changing it to provide a .pacnew later :ok_hand:
Edit: done

7 Likes

Anyway, it looks like it might've been a result of deleting that file, as I see the .pacnew file sitting right there happily after a number of updates.

No way to overwrite them? I'm not so sure about that, as I did it right here in the package garuda-reduce-verbosity :stuck_out_tongue:

If you don't like insults and other "silly" stuff garuda does, you can install garuda-reduce-verbosity to 1. disable insults 2. disable a couple verbose pacman hooks
If there is anything else people would like me to add that adds needless verbosity then lemme know!

2 Likes

How about adding a warning after 20 hours (of 24) on the forum that the user needs to get a life. :rofl:

2 Likes

:joy: You mean your wife doesn't do that already? Must just be mine... :rofl:

3 Likes