Can’t login after update zsh

Hi

Today I recognized I can’t use my user password for sudo or, for example, open timeshift. The only thing had been done before: I updated zsh. If there a way to fix it?

First time zsh update broke something for me. Or this is not zsh update problem?
I am in system right now and afraid to reboot, because not sure will the system log in me.

System:
  Kernel: 5.10.89-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=f39d9866-5be6-4713-b625-36fb4ec289a4 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: N552VW v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: N552VW v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: N552VW.300 date: 08/31/2016
Battery:
  ID-1: BAT0 charge: 31.7 Wh (96.6%) condition: 32.8/48.2 Wh (68.0%)
    volts: 14.4 min: 14.4 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: Not charging cycles: 383
Memory:
  RAM: total: 15.53 GiB used: 4.95 GiB (31.9%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S
    family: 6 model-id: 0x5E (94) stepping: 3 microcode: 0xEA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 800 min/max: 800/3500 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800
    8: 800 bogomips: 41621
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
    f16c flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp
    hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good rtm sdbg sep
    smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics:
  Device-1: Intel HD Graphics 530 vendor: ASUSTeK driver: i915 v: kernel
    bus-ID: 00:02.0 chip-ID: 8086:191b class-ID: 0300
  Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: ASUSTeK driver: nvidia
    v: 495.44 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:139b
    class-ID: 0302
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-4:2 chip-ID: 13d3:5666 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.2 compositor: xfwm4 v: 4.16.1 driver:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,nv,vesa
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.0x22.5")
    s-diag: 1165mm (45.9")
  Monitor-1: eDP-1 res: 3840x2160 hz: 60 dpi: 284
    size: 344x194mm (13.5x7.6") diag: 395mm (15.5")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
    class-ID: 0403
  Device-2: Sennheiser Headset [PC 8] type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-5:6 chip-ID: 1395:0025
    class-ID: 0300
  Sound Server-1: ALSA v: k5.10.89-1-MANJARO 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.42 running: yes
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel bus-ID: 02:00.0
    chip-ID: 8086:095a class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus-ID: 03:00.1
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0f1 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-9:4 chip-ID: 8087:0a2a class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 2.29 TiB used: 71.06 GiB (3.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: SK Hynix model: HFS512G39MND-3510A
    size: 476.94 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 0P00 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000LM003 HN-M201RAD
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 0001 scheme: GPT
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: DVDRAM GUE1N rev: AS00
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 98.81 GiB size: 96.7 GiB (97.86%) used: 71.03 GiB (73.5%)
    fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A
    uuid: f39d9866-5be6-4713-b625-36fb4ec289a4
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.3 MiB (26.3%) fs: vfat dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 7E48-4C5B
  ID-3: /run/compressed-mount-point raw-size: 1.55 GiB
    size: 1.53 GiB (98.28%) used: 24 KiB (0.0%) fs: ext2 dev: /dev/zram1
    maj-min: 254:1 label: N/A uuid: N/A
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 499 MiB fs: ntfs
    label: \xd0\x92\xd0\xbe\xd1\x81\xd1\x81\xd1\x82\xd0\xb0\xd0\xbd\xd0\xbe\xd0\xb2\xd0\xb8\xd1\x82\xd1\x8c
    uuid: CCBA479BBA478146
  ID-2: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/sda4 maj-min: 8:4 size: 377.53 GiB fs: ntfs label: N/A
    uuid: 0434816F34816490
  ID-4: /dev/sdb1 maj-min: 8:17 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-5: /dev/sdb2 maj-min: 8:18 size: 878.89 GiB fs: ntfs label: N/A
    uuid: 447C577C7C5767A6
  ID-6: /dev/sdb3 maj-min: 8:19 size: 984.11 GiB fs: ntfs label: N/A
    uuid: 1024636424634BB2
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: IMC Networks USB2.0 HD UVC WebCam type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 13d3:5666 class-ID: 0e02 serial: <filter>
  Device-2: 1-5:6 info: Sennheiser Headset [PC 8] type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 1395:0025 class-ID: 0300
  Device-3: 1-6:3 info: A4Tech XL-730K / XL-750BK / XL-755BK Mice
    type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 09da:9090 class-ID: 0301
  Device-4: 1-9:4 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2a class-ID: e001
  Device-5: 1-12:5 info: Atmel type: HID
    driver: hid-generic,hid-multitouch,usbhid interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 03eb:8a9c class-ID: 0300
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 42.0 C pch: 40.5 C mobo: N/A
  Fan Speeds (RPM): cpu: 2100
Info:
  Processes: 306 Uptime: 51m wakeups: 379 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.1.0 alt: 10 clang: 13.0.0 Packages: 1419 pacman: 1414
  lib: 361 flatpak: 0 snap: 5 Shell: Zsh v: 5.8 running-in: xfce4-terminal
  inxi: 3.3.11

What is the output of groups. Also see this:

thank you for your quick answer

$ groups
sys network power lp wheel delagardi

Also see this:

I can’t nor open /etc/sudoers.d/ folder (not enought permissions) nor edit /etc/sudoers file (its just empty and there are no line to uncomment). Should I ask this question on that tread?

You will need to switch to root, su -

Then I try to switch to root with su - I got an error:

$ su -
Пароль: 
su: Сбой при проверке подлинности 

# [Authentication failure in English]

I have the only one password in my system or there should be some special password for root user?

zsh doesn’t have anything to do with sudo. However, as others have said, there was an update to the sudo package.

As @ishaanbhimwal quoted… :arrow_down:


If you’ve set a different password for the root account and your regular account, then you can use… :arrow_down:

su -

… to become root, and then you should be able to edit the file(s).

If on the other hand you’ve set the same password for both the root account and your regular user account, then I’m afraid you’re going to have to boot up from the install medium ─ USB or DVD ─ in live mode and chroot into your installed system.

Here’s the procedure, assuming that you’ve booted up from the install medium in live mode…: open up a terminal window and issue the following commands… :arrow_down:

sudo su -
manjaro-chroot -a

Now you will ─ inside the terminal window ─ be in your installed system, with root privileges, and all directory paths will be relative to the installed system, not to the live medium. So if you type… :arrow_down:

cd /etc

… then you will effectively be in the /etc directory of the installed system. You can then edit the file(s) with nano. :arrow_down:

nano name-of-the-file

Example…: :arrow_down:

nano /etc/sudoers

After editing the file, save it with Ctrl+O and exit nano with Ctrl+X. You can then exit the chroot environment with… :arrow_down:

exit

… or by pressing Ctrl+D.

It should now be safe to reboot your system in the normal manner. Be sure to remove the USB/DVD in time in order to allow booting up from the installed system.

3 Likes

All works now.

Hannon Le (thank you) || or Ni 'lassui En, sorry I am not sure :slight_smile:

1 Like

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