LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-31-2003, 01:27 PM   #1
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
S-l-o-w password recognition/authentication


I've searched here and on Google and not found the identical problem: all the ones I found seemed to involve networking.

I'm using Mandrake 9.2 on a single desktop machine with an ADSL internet connection. Besides root, there's only "jon" as a user.

I can go into an Xterm or one of the non-X Window terminals and su from jon to root almost instantly. Then I can change back to jon instantly. But the next time I su to root, it takes 25 seconds for the password to be authenticated. And this continues till I terminate my X Window session and start a new one.

Does this sound familiar to anyone?
 
Old 10-31-2003, 03:04 PM   #2
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
I've never seen this problem, and I don't know exactly how to solve it, but it might be a problem with PAM's configuration. You might want to do a man pam and check your /etc/pam.conf or /etc/pam.d files. Sorry I couldn't be more helpful.
 
Old 10-31-2003, 06:50 PM   #3
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Thanks, Zoombie--I looked at the manual pages and the files in /etc/pam.d and if the problem lies there, as it well might, I guess I'm sunk, since it's beyond my poor ability to figure out.

I do have another clue, though: I discovered that although logging in a second time as root, in an Xterm, takes 25 seconds, if I close that Xterm and open a new one, I can log in as root instantaneously as I always used to do. It's only the second and subsequent su's to root that take 25 seconds apiece. (Su'ing back to "jon" is always instantaneous, or nearly so.)

????
 
Old 11-01-2003, 07:12 AM   #4
TheChicken
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
I've got the same problem in 9.2, although it does not happen on a regular basis. I havent looked into it, but if i find something i'll post it here.
 
Old 11-01-2003, 12:18 PM   #5
BobGuy
LQ Newbie
 
Registered: Oct 2003
Location: In A House
Distribution: mandrake slackware
Posts: 24

Rep: Reputation: 15
Instead of 'su' try 'su -' and see if that also takes 25 seconds for the password to be authenticated. I don't know if that will solve the authentication issue or not, but it would not hurt to try that.

Also what Xterm are you using?
 
Old 11-01-2003, 12:28 PM   #6
BobGuy
LQ Newbie
 
Registered: Oct 2003
Location: In A House
Distribution: mandrake slackware
Posts: 24

Rep: Reputation: 15
Quote:
Originally posted by jonr
(Su'ing back to "jon" is always instantaneous, or nearly so.)
I never su back, I always exit from root which puts be back as user bob, and I've never seen this issue pop up before.

HTH
 
Old 11-01-2003, 01:15 PM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
When I issue "xterm -version" it opens a new xterm and in the starting xterm it prints

XFree86 4.3.99.5(179)
XFree86 4.3.99.5(179)


I tried su - and got the same result as without the hyphen.

One more possible clue? I've found that occasionally an application cannot be opened from xterm; the error is "unable to connect to x server." If I close the xterm and open a new one, the application runs OK.
 
Old 11-01-2003, 01:24 PM   #8
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Hmm! Tried using "exit" instead of "su jon" which I'd been using for all these months, and the delay doesn't happen when I su back to root. I guess I just need to learn a new habit. That's what I get for upgrading---I always end up with things that don't work like before....

I'll have to see if the programs-not-able-to-connect-to-x-server thing still happens if I've been switching identities back and forth this other way.
 
Old 11-01-2003, 01:49 PM   #9
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
OK. I opened an xterm, did su to root, then su back to jon, and tried to open chbg. Here's what it looks like:

[jon@bodhisattva home]$ su
Password:
[root@bodhisattva home]# su jon
[jon@bodhisattva home]$ chbg
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gdk-WARNING **: cannot open display: :0.0
[jon@bodhisattva home]$

Then I opened an xterm, did su to root, EXITED back to jon, and
tried opening chbg, and it worked OK. So...

At least we know the two phenomena are related!
 
  


Reply



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
Password Authentication Application rajsun Programming 2 03-04-2005 12:15 AM
ssh with password authentication Nyarlathotep Linux - Security 4 10-06-2003 12:13 PM
email password authentication flynnt Linux - Security 1 09-11-2003 02:09 PM
email password authentication flynnt Linux - Networking 0 09-11-2003 01:02 AM
Password Authentication Server Tunarle Linux - Networking 1 07-27-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:25 AM.

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
Open Source Consulting | Domain Registration