Bug 99239 - Login Manager Administrator Mode hangs when I set su to not require a root password
Summary: Login Manager Administrator Mode hangs when I set su to not require a root pa...
Status: RESOLVED DUPLICATE of bug 84039
Alias: None
Product: kdesu
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 01:51 UTC by Adam
Modified: 2010-11-06 15:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Allow NOPASS in /etc/suauth (2.75 KB, patch)
2009-08-06 20:16 UTC, Robby Workman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2005-02-13 01:51:28 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) 
OS:                Linux

I removed pam (because I don't like it) and created a /etc/suauth file which allows me to use "su" and bypass it asking me for a password when changing to root.  This works in a terminal.  But when I go to Control Center -> System Administration -> Login Manager and click Administrator Mode, it just sits there "Loading" it.

Removing the /etc/suauth file makes it work normally.
Comment 1 Oswald Buddenhagen 2005-07-20 23:10:25 UTC
worksforme. please verify with kde 3.4.
Comment 2 Adam 2005-07-20 23:53:58 UTC
OK, I now have KDE 3.3.2 and it works from the Control Center (though there's a delay which is longer than I suspect it needs to be).  So it must have been fixed between those 2 versions.

But when I try to start the login manager on its own (through K Menu -> Preferences -> System Administration -> Login Manager) it does the KDE "try to start for so many seconds then give up" thing.  So basically that module isn't being started.  I don't know the equivalent command line command - it isn't "kcmshell kdm" because that starts.
Comment 3 Oswald Buddenhagen 2005-07-21 00:14:20 UTC
hmm. with trunk as of today (not much different from 3.4 in this area) that works, too.
Comment 4 Adam 2005-07-21 01:31:12 UTC
OK, I'll have to get back to you once I upgrade.
Comment 5 Adam 2005-07-21 16:38:29 UTC
This is strange.  I upgraded to KDE 3.4.1.  Now when I go to K Menu -> Preferences -> System Administration -> Login Manager, it works (though there's another delay of about 5 seconds) and I have administrator privelages automatically (which I guess is correct behaviour).  However, when I try to go through the Control Center, it sits there "Loading" again, just like it was doing originally.  So clearly there's still some code somewhere that isn't quite right.

Just to make sure we're both talking about the same thing here (in case I wasn't clear in the original report): I created the file /etc/suauth with the following contents:

root:adam:NOPASS
root:ALL EXCEPT adam:DENY

What this does is let me type "su" in a console and immediately become root, without being asked for root's password.  It also prevents all other users from becoming root at all.  This is a strange configuration and I believe it's what's causing the hang; when I click "Administrator Mode", it should likewise immediately go into administrator mode without bringing up the password dialog; or at least it shouldn't hang.
Comment 6 Oswald Buddenhagen 2005-07-21 17:37:19 UTC
i'm seeing even "better" things: for some seconds there is "loading", after which it goes into "no module selected" mode. anyway, this has nothing to do with authentication. i suspect this to be some embedding problem. i don't remember one longer period throughout which it was not broken on HEAD/trunk, so i don't bother reporting issues with it - everybody knows that xembed sucks anyway. :-/
oh, wait, today it is in good mood - it works. :)))
Comment 7 Robby Workman 2009-08-06 20:16:32 UTC
Created attachment 35927 [details]
Allow NOPASS in /etc/suauth
Comment 8 Robby Workman 2009-08-06 20:17:25 UTC
Er, I meant to include a comment with that last patch.
The patch is from piterpunk AT slackware.com - not from me.

Also, this bug is probably a dupe of https://bugs.kde.org/show_bug.cgi?id=84039
Comment 9 Oswald Buddenhagen 2010-11-06 15:43:24 UTC

*** This bug has been marked as a duplicate of bug 84039 ***