You are not logged in.

#1 2023-09-06 21:58:59

tye
Member
Registered: 2023-09-04
Posts: 7

[SOLVED] Sudo doesn't work in DE

I've installed the LXDE desktop environment and the kitty terminal, everything is going well, except for when i try and used sudo in the kitty terminal.
I type in my password and it returns the "sorry, incorrect message".
I then log out of the DE and type in the same password and it works.

Last edited by tye (2023-09-08 01:34:03)

Offline

#2 2023-09-07 06:10:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,103

Re: [SOLVED] Sudo doesn't work in DE

"sorry, incorrect message" isn't a sudo output
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

sudo -k
LC_ALL=C sudo -v

Did you try to just type your password into the terminal to make sure it's not the keyboard layout?

Offline

#3 2023-09-07 15:49:38

tye
Member
Registered: 2023-09-04
Posts: 7

Re: [SOLVED] Sudo doesn't work in DE

As it turns out the DE has a different keyboard layout than the terminal, I didn't know that was possible.
After spending a few hours trying to fix it I can't find an automatic way to do it so I'll just live with it.
A way that works is "setxkbmap -layout" but it doesn't persist after reboot
I am using LXDE if anyone can help me with that?

Offline

#4 2023-09-07 16:04:18

ua4000
Member
Registered: 2015-10-14
Posts: 558

Re: [SOLVED] Sudo doesn't work in DE

The necessary steps to configure the keymap are different for virtual console and Xorg, they are described in
https://wiki.archlinux.org/title/Linux_ … figuration
and
https://wiki.archlinux.org/title/Xorg/K … figuration
respectively.

Offline

#5 2023-09-07 16:21:34

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,557
Website

Re: [SOLVED] Sudo doesn't work in DE


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2023-09-08 01:33:52

tye
Member
Registered: 2023-09-04
Posts: 7

Re: [SOLVED] Sudo doesn't work in DE

Thank you for your help.
I managed to get it working with:
https://wiki.archlinux.org/title/Xorg/K … _localectl

I'm not sure why these sites didn't appear when I was trying to find a solution myself.

Offline

Board footer

Powered by FluxBB