Bug 639978

Summary: authconfig should touch only those files which need an update
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: ohudlick, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: authconfig-6.1.11-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-11 19:27:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Šplíchal 2010-10-04 13:28:14 UTC
Description of problem:

The problem mentioned in bug 594030 was partially fixed there.
However when disabling an authentication method the config files
/etc/nsswitch.conf & /etc/pam.d/system-auth-ac are still being
overwritten although no change in configuration happened:

# rpm -q authconfig
authconfig-6.1.4-6.el6.x86_64

# strace authconfig --update --enablesssd --enablesssdauth 2>&1 | grep
'/etc/.*O_CREAT'
open("/etc/nsswitch.confx8WJpR", ...
open("/etc/pam.d/system-auth-acnUklPk", ...
open("/etc/pam.d/password-auth-ac2Kcu8M", ...
open("/etc/pam.d/fingerprint-auth-acp4c7ME", ...
open("/etc/pam.d/smartcard-auth-ac4QEm1m", ...

# strace authconfig --update --enablesssd --enablesssdauth 2>&1 | grep
'/etc/.*O_CREAT'

# strace authconfig --update --disablesssd --disablesssdauth 2>&1 | grep
'/etc/.*O_CREAT'
open("/etc/nsswitch.confUfn0do", ...
open("/etc/pam.d/system-auth-accgstF4", ...
open("/etc/pam.d/password-auth-aci5dHcy", ...
open("/etc/pam.d/fingerprint-auth-acgG4q2e", ...
open("/etc/pam.d/smartcard-auth-acv98bfI", ...

# strace authconfig --update --disablesssd --disablesssdauth 2>&1 | grep
'/etc/.*O_CREAT'
open("/etc/pam.d/system-auth-acHOUPIf", ...
open("/etc/pam.d/password-auth-acLy5lu5", ...
open("/etc/pam.d/fingerprint-auth-ac8uGc9q", ...
open("/etc/pam.d/smartcard-auth-acynG2CU", ...

Comment 1 Tomas Mraz 2010-10-11 19:27:33 UTC
Hopefully fixed in the latest authconfig release.