Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212473 - make su and sudo use system-login from sys-auth/pambase
Summary: make su and sudo use system-login from sys-auth/pambase
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
Depends on:
Blocks: 210767
  Show dependency tree
Reported: 2008-03-06 12:09 UTC by Jakub Moc (RETIRED)
Modified: 2008-04-06 23:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Moc (RETIRED) gentoo-dev 2008-03-06 12:09:39 UTC
A reminder, as requested by Flameeyes... ;)
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-03-07 14:03:50 UTC
Half done, sudo-1.6.9_p14 and 1.7_beta3 use system-login rather than system-auth.
Comment 2 Hans Nieser 2008-03-21 19:41:28 UTC
(In reply to comment #1)
> Half done, sudo-1.6.9_p14 and 1.7_beta3 use system-login rather than
> system-auth.
It seems that (I could be mistaken however, PAM > me) as a result of this sudo now prints lastlogin/motd whenever I use it (even after it asks it has already asked the password on first invocation) which I find slightly (not not a big deal however) annoying: 

# sudo echo foo
Last login: Fri Mar 21 20:37:06 CET 2008 from magrathea on pts/8
Welcome to Magrathea!

Is this an oversight/unintended result, or should I just customize my pam files if I don't want this?
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2008-04-06 09:58:08 UTC
Same here, I found it quite annoying as well, but one can get used to it. Much more annoying is the recent gdm behaviour change -- it displays a dialog box with lastlogin data every time I log in... Is this intended, unrelated to this bug, or something else? :)

Complete ~amd64 here, btw.
Comment 4 Hans Nieser 2008-04-06 12:57:58 UTC
Ok, I just updated pam to 1.0.0 and sudo now uses system-auth and thus no more motd/lastlogin messages, now that I think about it, maybe I misread Diego's post and the intention was exactly to make it use system-aouth

Either way, thanks!
Comment 5 srrijkers 2008-04-06 20:27:56 UTC
Really, why should sudo or su use system-login? Should they have an optional An optional An optional

The problem with gdm is the same, since it actually does use system-login. Why should gdm use,, or So yes, the gdm crap *is* related to using system-login.

system-auth is a perfect default: it contains just the things that *should* be inhered by all things pam. The problem with system-login is that it contains all kinds of extra things, making it unsuitable for general inheritance.

My question is: what exactly is the point of system-login? It contains way to much stuff to make it suitable as a 'default pam thing for logins'. That would be system-auth's job, for a minimal set of general things. If we want to do all kinds of special things on console/gdm whatever logins, login/gdm/whatever would be the place to specify them.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-04-06 23:51:55 UTC
sudo has already backed away, as per GDM, it is interesting how it behaves, but I'd rather not create a new system-console-local-login configuration file, so I'd say look in gdm's way to find a solution.