You are not logged in.

#1 2013-07-26 22:46:09

darzki
Member
Registered: 2011-11-20
Posts: 7

[SOLVED] Can't su or sudo in X

I can su/sudo in console, but not in X - why?

Reinstalling coreutils fixes it, but only until next reboot. Is there any way to fix it permanently?

I am using fresh install of x86_64.

Last edited by darzki (2013-07-27 21:01:30)

Offline

#2 2013-07-26 22:50:49

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Can't su or sudo in X

Welcome to Arch's forums.

Please be specific. What error do you get? Post the command you use (an example will do) and the output you get using [code ] [/code ] tags (without the spaces). All we know right now is that you can't use su/sudo while in X. For all we know, that could be due to post-hypnotic suggestion or alien interference.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-07-26 22:51:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Can't su or sudo in X

Please post the exact command you're trying to run and the output.

Do you mean https://wiki.archlinux.org/index.php/Ru … ps_as_root ?

Offline

#4 2013-07-26 23:55:01

darzki
Member
Registered: 2011-11-20
Posts: 7

Re: [SOLVED] Can't su or sudo in X

Nope, just normal 'su'. It says that password is incorrect (but it is - I am sure of it). I am not trying to run any graphical software with su, just use 'su' to log in as root, and then 'pacman -Syu' as for last 3 years in normal X session.

I am in wheel group. I can su in console (before starting X or by switching using ALT+F#).

Offline

#5 2013-07-27 00:08:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Can't su or sudo in X

You said you couldn't use either su or sudo. Does it claim *both* passwords are incorrect?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-07-27 09:01:34

darzki
Member
Registered: 2011-11-20
Posts: 7

Re: [SOLVED] Can't su or sudo in X

Yes. Both su and sudo refuses to accept respectively root and user password in X.

Last edited by darzki (2013-07-27 09:02:02)

Offline

#7 2013-07-27 11:36:54

jv2112
Member
Registered: 2011-07-23
Posts: 160

Re: [SOLVED] Can't su or sudo in X

Boot in single user mode and change the password.


Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -

Offline

#8 2013-07-27 13:11:56

darzki
Member
Registered: 2011-11-20
Posts: 7

Re: [SOLVED] Can't su or sudo in X

I did change it with no results. Oh well, I guess I will remove all packages and start from scratch.

Offline

#9 2013-07-27 13:18:03

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Can't su or sudo in X

Does the password contain any special characters?  Is the password correct if you type it into an editor whilst in X?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#10 2013-07-27 13:30:58

psycho
Member
Registered: 2013-04-26
Posts: 29

Re: [SOLVED] Can't su or sudo in X

Are you using a laptop/netbook ? I have encountered some time ago the same problem on an old netbook. The fault ? Numlock was on the qwerty keyboard, and activated using Fn. The password was something like netbookpassword while it recognised netb8859assw8rd .


~ > fortune
I never met a piece of chocolate I didn't like.

Offline

#11 2013-07-27 13:47:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't su or sudo in X

darzki wrote:

Reinstalling coreutils fixes it, but only until next reboot.

I'm suprised this hasn't recieved more attention.  I have no idea what this could mean, but this would definitely be the start of my investigation.  I'd start trying variations of these steps to see which was the relevant trigger.

Is there a post install script in the coreutils package?  If so, does running that script alone temporarily solve the problem?  If so, break the script down and see which component really does it - then investigate why that may be needed after a reboot.

Vague, I know - but if you have a consistent repeatable manner to both trigger and fix the problem, you should focus on breaking those down to the bare minimum steps that trigger/fix it, then look at what those steps are actually doing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2013-07-27 14:15:21

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 281
Website

Re: [SOLVED] Can't su or sudo in X

If you are using a localized keyboard, that could be the issue. If the password is typed in using special characters, then that could very well be the problem. I have a localized keyboard (as most countries do) and I do naturally enough have make sure to use localized keyboard both in console and in X. A simple test you could perform would be to try typing any other character than letters in console and then do the same in X and see if there is a difference.

Of course, this only applies if you are using special characters in passwords.

Offline

#13 2013-07-27 20:14:12

darzki
Member
Registered: 2011-11-20
Posts: 7

Re: [SOLVED] Can't su or sudo in X

So I made a clean installation and problem seams to be fixed. I won't add [solved] in topic name, because I did not fix it by using a proper way.

Last edited by darzki (2013-07-27 20:14:28)

Offline

#14 2013-07-27 20:51:52

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Can't su or sudo in X

As you reinstalled, you eliminated any possibility of finding a solution through any other ("proper") way.  If you problem no longer exists, I'd think this should be marked solved.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#15 2013-07-28 10:35:36

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [SOLVED] Can't su or sudo in X

What I would do in these circumstances would be to mark the thread "resolved".

Offline

Board footer

Powered by FluxBB