LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2019, 07:35 PM   #1
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Rep: Reputation: Disabled
Authentication issue on Slackware


Hello world! I'm a new member here, and this is the fist time I post a question on a forum, I would really appreciate your help, I've been digging the internet for an answer for couple months now.
my problem is that I cant use su while on X, it always returns "Authentication failure" so every time I need superuser privileges I have to logout to the boot terminal or do all the work there! any thoughts on what might be the cause of this issue? its been like this since day 1.

and just to clarify, root has its password, my user is a member of wheel group, my keyboard is working fine,I enter root password, and the password is correct, please help.

thanks!
 
Old 01-10-2019, 07:45 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,439
Blog Entries: 25

Rep: Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441
All I can say it that this is truly unusual. In every Slackware install I've had, I've been able ot open a terminal in desktop environment or window manager and use su to assume root privileges.

When you try to use su in a terminal in the GUI, what error messages, if any, do you get?
 
Old 01-10-2019, 07:54 PM   #3
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
@frankbell thank you very much for your quick feed-back!
when I enter the correct password for root I get "su: Authentication failure" that occurs only when I'm on the GUI terminal.
 
Old 01-10-2019, 08:34 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,439
Blog Entries: 25

Rep: Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441
And this same password works from the command line when X is not running?

If that's the case, I admit that I am baffled.

There are many Slackware users here who are much more knowledgeable than I; one hopes that one of them will join in this thread.
 
Old 01-10-2019, 09:06 PM   #5
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
@frankbell Yes it works fine from the command line!
hopefully someone with the answer will show up, Thank you very much for your input I really appreciate it.
 
Old 01-11-2019, 04:44 AM   #6
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 820
Blog Entries: 7

Rep: Reputation: 201Reputation: 201Reputation: 201
In MSEC in Mageia (which uses KDE) there is an option "allow superuser login on terminal", if this is not hooked it causes the behaviour that the threadstarter is talking about. Sadly I don't know MSEC very well, but it is a GUI (probably scripts) that adjust various security settings in the GNU/Mageia environment itself.

It could be that this setting is a generic GNU/Linux option in some setting file in /etc or in some xorg config file or something like that, or some parameter added to some setting file. Unfortunately I do not know more than this. I just know that su works in tty, but not on a GUI terminal (emulator).

edit
Ok, so Mageia uses PAM ofcourse, and this behaviour I am talking about is highly likely to be PAM related. So, you can pretty much disregard my post, but keep it in the back of your mind, if there is perhaps a similar function in Slackware through Xorg, or KDE or something similar, or if I am wrong, and this function is not provided by PAM in Mageia.

Last edited by zeebra; 01-11-2019 at 02:24 PM. Reason: Further info
 
Old 01-11-2019, 09:51 AM   #7
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
I suspect that the issue is related to the keyboard mapping on my system, when I installed Slackware I chose an "AZERTY" keyboard map because that's what I have, but when GUI loaded it was "QWERTY" so I had to change it, and even now there is still some discrepancies between the mapping on the command line and the GUI, however the password I enter is in fact correct even with the different mapping but still its not accepted, and I just discovered today that I can only log in using the command line if I lock screen and try to log back it gives me the authentication failure error!

Last edited by juiz; 01-11-2019 at 09:53 AM.
 
Old 01-11-2019, 09:25 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,439
Blog Entries: 25

Rep: Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441Reputation: 4441
This is a long shot, but, when in the GUI, try opening a text editor and typing your root password into it. I'm guessing that, if it's keyboard mapping error in the GUI, the password won't display properly when typed in the clear--but that's just a guess and as I said a very long shot.
 
1 members found this post helpful.
Old 01-12-2019, 06:36 AM   #9
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Slackware
Posts: 1,866
Blog Entries: 5

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
To me it just sounds like a mapping error. Frank's idea is what I was going to suggest. Also try different terminals.

Also read:

https://docs.slackware.com/howtos:wi...eyboard_layout
https://docs.slackware.com/slackware:localization
 
Old 01-12-2019, 07:36 AM   #10
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
This is a long shot, but, when in the GUI, try opening a text editor and typing your root password into it. I'm guessing that, if it's keyboard mapping error in the GUI, the password won't display properly when typed in the clear--but that's just a guess and as I said a very long shot.
I tried that before, the password display correctly! that's what puzzling me.



Quote:
Originally Posted by Lysander666 View Post
To me it just sounds like a mapping error. Frank's idea is what I was going to suggest. Also try different terminals.

Also read:

https://docs.slackware.com/howtos:wi...eyboard_layout
https://docs.slackware.com/slackware:localization
I did try different terminals but same problem occurs, I will check out the links thanks!
 
Old 01-12-2019, 08:29 AM   #11
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 820
Blog Entries: 7

Rep: Reputation: 201Reputation: 201Reputation: 201
a tty "terminal" and a terminal emulator is not the same thing. Different security settings or access rights can affect the right of the terminal emulator to invoke super user privileges.

I know this is a case in Mageia, but I am not yet familiar enough with various configurations and mechanisms in Slackware to point to where this could be the case in Slackware as well. I don't know Xorg very well, but it can definitely be the case that such a parameter is set in Xorg somewhere, such that any Xorg process cannot invoke super user.

Edit. As far as I remember from discussions, Slackware 14.2 and prior versions do not use PAM. But do they use Polkit through KDE? I don't know yet, I haven't explored that much..

If yes, could the issue be a polkit issue?

Last edited by zeebra; 01-12-2019 at 08:42 AM. Reason: added info
 
Old 01-15-2019, 01:11 PM   #12
juiz
LQ Newbie
 
Registered: Jan 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you all very much for your support especially @frankbell your guess about the issue being keyboard mapping error was accurate, the problem was that some special chars in my password was different than what I thought they were! so basically the way I type my password will depend on weather I'm in terminal or tty as if I have two passwords for every account!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
su: Authentication service cannot retrieve authentication info. r11_kaede Linux - Newbie 3 05-17-2009 12:10 PM
Slackware - LDAP + SAMBA - domain user authentication issue dilandach Slackware 1 04-07-2009 12:40 AM
Authentication service cannot retrieve authentication info - for new user yosial Linux - Newbie 2 10-28-2008 11:30 PM
scp without authentication and ssh with authentication? bkcreddy17 Linux - Server 7 10-08-2008 01:33 AM
Authentication service cannot retrieve authentication info Moffett67 Linux - Software 3 12-13-2007 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration