MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.)
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.
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.