Bug 2203538

Summary: Missing files in sssd-common
Product: [Fedora] Fedora Reporter: Robert Hinson <robert.hinson>
Component: sssdAssignee: sssd-maintainers <sssd-maintainers>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: abokovoy, aboscatt, atikhono, jhrozek, lslebodn, luk.claes, mzidek, pbrezina, sbose, ssorce, sssd-maintainers
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-29 07:02:23 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 Robert Hinson 2023-05-13 19:19:22 UTC
I reinstall sssd-common and it has the /etc/sssd/sssd.conf file in the package but when I reinstall it the file isn't in the directory.  I don't know anything about rpm's.  I see the file listed when I do rpm -qil sssd-common.  Is there an action somewhere that removes that file?

Reproducible: Always

Steps to Reproduce:
1. sudo dnf reinstall sssd-common
2. sudo ls /etc/sssd/sssd.conf
3.
Actual Results:  
ls: cannot access '/etc/sssd/sssd.conf': No such file or directory

Comment 1 Alexey Tikhonov 2023-05-15 10:05:39 UTC
Hi,

> I reinstall sssd-common and it has the /etc/sssd/sssd.conf file in the package

No, it doesn't (shouldn't). SSSD doesn't install any actual config file by default (only ships an example in %{_libdir}/%{name}/conf/sssd.conf - /usr/lib64/sssd/conf/sssd.conf)

Probably 'rpm -qil' lists it due to https://src.fedoraproject.org/rpms/sssd/blob/rawhide/f/sssd.spec#_760:
```
%ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
```
  --  "... the %ghost directive. By adding this directive to the line containing a file, RPM will know about the ghosted file, but will not add it to the package."

Comment 2 Andre Boscatto 2023-05-25 14:17:09 UTC
Do you have any additional questions or the previous answer satisfies your question?

Comment 3 Robert Hinson 2023-05-29 02:29:36 UTC
No, I don't.  I didn't know how that worked.  Thanks for this info.