Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35487 - /etc/pam.d/system-auth overwritten by changes to pam
Summary: /etc/pam.d/system-auth overwritten by changes to pam
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 16:23 UTC by Bob Smart
Modified: 2003-12-21 16:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Smart 2003-12-09 16:23:03 UTC
You provide things like pam_krb5. The natural place to use these is in
modifications to /etc/pam.d/system-auth. However this is overwritten
when pam is updated and it seems to have happened a lot lately.
I know it tells you as it does it, but it is impractical to watch every emerge
[better handling of that is another problem for portage-ng I guess].

For the moment I'd just like to have /etc/pam.d/system-auth handled by
etc-update. Please. Or provide an option to do that.

Thanks, Bob.

Reproducible: Always
Steps to Reproduce:
1. emerge pam
2.
3.

Actual Results:  
/etc/pam.d/system-auth zapped

Expected Results:  
used etc-update system
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-14 20:16:55 UTC
1) system-auth is not even installed with pam.

2) The only way this could happen, is if you updated shadow, but
 then it backups the old to /etc/pam.d/system-auth.bak (and give
 a message)
Comment 2 Bob Smart 2003-12-14 20:30:28 UTC
OK I'm dumb. But I insist: shadow shouldn't do this.
It should use the etc-update method somehow.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-15 22:27:19 UTC
It does usually.  The force was due to security issue.  I reverted it, as
sufficient time should have passed.  If this is fine by you, please close
this bug.
Comment 4 Bob Smart 2003-12-21 16:25:53 UTC
Resolving as requested. There is still an issue in general about how gentoo handles an upgrade that requires action by the system manager. My suggestion is that the upgrade should fail initially until the user does something (e.g. creates a particular file) that indicates that he knows he needs to do something after the upgrade. In this case the file could be /etc/pam.d/system-auth.new.id-number and the installation should use that to replace the old system-auth.

Bob