I use a RPM spec which contains lines very similar to the following:
...
%files
%defattr(-,root,root)
%attr(0666,root,root) %config /etc/myapp/myconfig.ini
...
The problem I encounter if someone installs an update of the RPM is that the access mode of /etc/myapp/myconfig.ini is wrong:
ur@test1:~> ls -l /etc/myapp/myconfig.ini
---------- 1 daemon root 1207 2012-10-29 17:16 /etc/myapp/myconfig.ini
So the application can't access it any longer. What did I do wrong?