Cannot disable password (NOPASSWD)

As in Arch, I would like to be able to disable password prompts.
As such, I made sure to add the following to my /etc/sudoers:

%wheel ALL=(ALL) NOPASSWD: ALL
%sudo ALL=(ALL) NOPASSWD: ALL
kiara ALL=(ALL) NOPASSWD: ALL

now, unfortunately even after a reboot, this seems not to help: when using sudo commands I am still prompted for a password.
have i done this wrong?

inxi -Faz

System:
  Kernel: 5.14.16-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
  root=UUID=12ea0cdd-ecc3-4eb8-b28c-db80a96419f2 rw [email protected] quiet splash
  rd.udev.log_priority=3 vt.global_cursor_default=0
  systemd.unified_cgroup_hierarchy=1
  resume=UUID=822ea97b-1ab9-4c83-96eb-876f30e6095c loglevel=3
  Desktop: GNOME 41.1 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 41.0
  Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 14s-dq1xxx v: N/A
  serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 86C8 v: 56.32 serial: <superuser required> UEFI: AMI v: F.13
  date: 07/15/2020
Battery:
  ID-1: BAT0 charge: 38.4 Wh (100.5%) condition: 38.2/38.2 Wh (100.0%) volts: 13.0
  min: 11.6 model: HP Primary type: Li-ion serial: N/A status: Unknown
CPU:
  Info: Quad Core model: Intel Core i5-1035G1 bits: 64 type: MT MCP arch: Ice Lake
  family: 6 model-id: 7E (126) stepping: 5 microcode: A6 cache: L1: 320 KiB
  L2: 2 MiB L3: 6 MiB
  flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 19046
  Speed: 3476 MHz min/max: 400/3600 MHz Core speeds (MHz): 1: 3076 2: 2393 3: 1914
  4: 2946 5: 3209 6: 2794 7: 2621 8: 2378
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown 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: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Iris Plus Graphics G1 vendor: Hewlett-Packard driver: i915
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:8a56 class-ID: 0300
  Device-2: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo bus-ID: 1-3:4
  chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org 1.20.13 compositor: gnome-shell driver: loaded: intel
  unloaded: modesetting alternate: fbdev,vesa display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
  s-diag: 583mm (23")
  Monitor-1: HDMI1 res: 1920x1080 hz: 60 dpi: 81 size: 600x340mm (23.6x13.4")
  diag: 690mm (27.2")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Hewlett-Packard
  driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_icl bus-ID: 00:1f.3
  chip-ID: 8086:34c8 class-ID: 0403
  Sound Server-1: ALSA v: k5.14.16-zen1-1-zen running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
  vendor: Hewlett-Packard driver: rtl8821ce v: N/A modules: rtw88_8821ce,8821ce
  port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:c821 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: br-a4b86f21d4e2 state: down mac: <filter>
  IF-ID-2: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
  IF-ID-3: docker_gwbridge state: up speed: 10000 Mbps duplex: unknown
  mac: <filter>
  IF-ID-4: veth2e82bc4 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-5: veth86a81a7 state: up speed: 10000 Mbps duplex: full mac: <filter>
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0
  port: 4060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 238.47 GiB used: 78.39 GiB (32.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLQ256HAJD-000H1
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
  lanes: 4 type: SSD serial: <filter> rev: HPS4NFXV temp: 34.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 229.42 GiB size: 229.42 GiB (100.00%) used: 78.3 GiB (34.1%)
  fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 546 KiB (0.2%)
  fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 229.42 GiB size: 229.42 GiB (100.00%)
  used: 78.3 GiB (34.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 229.42 GiB size: 229.42 GiB (100.00%)
  used: 78.3 GiB (34.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 229.42 GiB size: 229.42 GiB (100.00%)
  used: 78.3 GiB (34.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 96.1 MiB (1.1%) priority: -2
  dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: swap-2 type: zram size: 7.46 GiB used: 5.34 GiB (71.5%) priority: 100
  dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 54.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 367 Uptime: 11d 12h 13m wakeups: 249 Memory: 7.46 GiB
  used: 6.51 GiB (87.2%) Init: systemd v: 249 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: nix-default: 0 nix-sys: 0 nix-usr: 0
  pacman: 1584 lib: 378 Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.09

Your changes are probably being overridden by a drop-in in /etc/sudoers.d.

This is really not a good idea.

4 Likes

Yeah you will need to add your custom stuff to the drop in folder other wise it will be ignored.

perfect, thanks for the feedback!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.