How do I change user/root password correctly?

When I installed Manjaro KDE I selected the password to also be the root password. After trying to change it recently using GUI in settings it seems to do nothing. Tried it on lock screen, logging off and reboot. The new password I thought I change did not got applied, only the old one. After reading through the forum I have only found solutions using the terminal which I am fine with it except it seems it is even more complicated than I thought. Now I need to pay attention not only to the user account password but to also change the root password to match it, and the keyring or vault? Can it not be all done in one fell swoop like when installing and throughout GUI?

inxi -Fxxxz                                                                                  ✔ 
  Kernel: 5.15.48-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
  Type: Desktop Mobo: ASRock model: X570 Steel Legend
    serial: <superuser required> UEFI: American Megatrends v: P2.20
    date: 11/26/2019
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 2S
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
  Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP smt: enabled
    arch: Zen 2 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 2199 high: 2200 min/max: 2200/4426 boost: enabled
    cores: 1: 2200 2: 2200 3: 2200 4: 2199 5: 2200 6: 2199 7: 2193 8: 2200
    9: 2200 10: 2200 11: 2199 12: 2200 13: 2199 14: 2200 15: 2200 16: 2200
    bogomips: 115233
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    vendor: XFX Pine driver: amdgpu v: kernel arch: RDNA 1 pcie: speed: 16 GT/s
    lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 11:00.0
    chip-ID: 1002:731f class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,top-left
    model: NX-EDG27 serial: <filter> res: 2560x1440 hz: 144 dpi: 85
    size: 768x432mm (30.24x17.01") diag: 686mm (27") modes: max: 2560x1440
    min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: bottom-r model: STD HDMI TV
    serial: <filter> res: 1920x1080 dpi: 55 size: 880x490mm (34.65x19.29")
    diag: 485mm (19.1") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD Radeon RX 5700 XT (navi10 LLVM 13.0.1 DRM 3.42
    v: 4.6 Mesa 22.1.1 direct render: Yes
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 11:00.1 chip-ID: 1002:ab38 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 13:00.4 chip-ID: 1022:1487 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.48-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: JACK v: 1.9.21 running: no
  Sound Server-4: PulseAudio v: 16.0 running: yes
  Sound Server-5: PipeWire v: 0.3.52 running: yes
  Device-1: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 09:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wireless-AC 9260 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 0b:00.0 chip-ID: 8086:2526 class-ID: 0280
  IF: wlp11s0 state: down mac: <filter>
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 1-3:4 chip-ID: 8087:0025 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
  Local Storage: total: 4.1 TiB used: 1.16 TiB (28.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 2TB
    size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 50.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 002C temp: 36.9 C
    scheme: GPT
  ID-3: /dev/sda vendor: Western Digital model: WD20EZAZ-00GGJB0
    size: 1.82 TiB speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A80 scheme: GPT
  ID-1: / size: 1.79 TiB used: 568.3 GiB (31.0%) fs: ext4 dev: /dev/dm-0
    mapped: luks-fc6660de-140f-4754-8f10-bd27043c72be
  ID-2: /boot/efi size: 299.4 MiB used: 440 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 53.0 C
    mem: 54.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 727
  Processes: 385 Uptime: 39m wakeups: 2 Memory: 15.55 GiB
  used: 3.67 GiB (23.6%) Init: systemd v: 251 default: graphical Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: 1594 pacman: 1541 flatpak: 40 snap: 13
  Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.18

Can you show which commands you used and maybe add what do you think they did? Probably worth searching for “difference between sudo and root password”.

sudo passwd in a terminal should let you change the password then that will be the root password.Your user password will still work the same and you can also still use it with sudo.In a terminal typing su - will ask for your root password.

Only root can change the password of root :wink:

Goto terminal !

Become root

sudo su

Change your password


Please also have a look into the manpages of passwd

Thank for our answers. In conclusion

and I need to change the password separately on all three places (root, user, and KWallet).

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