Bug 853074

Summary: authconfig backup/restore does not work for --enableshadow and --disableshadow
Product: Red Hat Enterprise Linux 7 Reporter: Patrik Kis <pkis>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED CURRENTRELEASE QA Contact: David Spurek <dspurek>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dspurek, ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: authconfig-6.2.4-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 852997 Environment:
Last Closed: 2014-06-13 12:05:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 852997    
Bug Blocks:    

Description Patrik Kis 2012-08-30 12:53:32 UTC
+++ This bug was initially created as a clone of Bug #852997 +++

Description of problem:
Authconfig backup/restore does not work for --enableshadow and --disableshadow.
Neither --restorelastbackup nor --savebackup/--restorebackup do their job.
Not all options were tested but --enablenis seems working.
The man page says nothing about exceptions in backup/restore.

Version-Release number of selected component (if applicable):
authconfig-6.1.12-10.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. Do a backup
# authconfig --savebackup testback
# sum /etc/shadow* /etc/passwd*
36542     2 /etc/shadow
61955     2 /etc/shadow-
23868     2 /etc/passwd
08119     3 /etc/passwd-

2. Change the shadow configuration
# authconfig --disableshadow --update
# sum /etc/shadow* /etc/passwd*
61955     2 /etc/shadow-
08119     3 /etc/passwd
23868     2 /etc/passwd-

3. Try to restore
# authconfig --restorelastbackup
# echo $?
0
# sum /etc/shadow* /etc/passwd*
61955     2 /etc/shadow-
08119     3 /etc/passwd
23868     2 /etc/passwd-
# 
# authconfig --restorebackup testback
# sum /etc/shadow* /etc/passwd*
61955     2 /etc/shadow-
08119     3 /etc/passwd
23868     2 /etc/passwd-

Actual results:
The original configuration is not restored.

Expected results:
All changes are restored.

Workaround:
# authconfig --enableshadow --update
# sum /etc/shadow* /etc/passwd*
36542     2 /etc/shadow
61955     2 /etc/shadow-
23868     2 /etc/passwd
08119     3 /etc/passwd-

Comment 1 Patrik Kis 2012-08-30 13:22:09 UTC
The symptoms and the reproducer is the same as above, just the component version changed:
authconfig-6.2.3-1.el7.x86_64

Comment 4 Ludek Smid 2014-06-13 12:05:04 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.