On 2014-06-13 12:05, Bernhard Voelker wrote:
On 06/13/2014 11:47 AM, Carlos E. R. wrote:
The procedure for finding out the culprit this time would be to repeat the steps again ;-)
$ rpm -q --scripts aaa_base | grep -B5 -A6 'bash_history.*600' while read file owner mode; do test -e "$file" || touch "$file" chmod "$mode" "$file" chown "$owner" "$file" done <<EOT /root/.bash_history root:root 600 /var/log/lastlog root:root 644 /var/log/faillog root:root 600 /var/log/wtmp root:utmp 664 /var/log/btmp root:root 600 /run/utmp root:utmp 664 EOT
Ah. So if checks for the existence of the file before touching it, but not for changing its permissions, or not doing it if it is a link. Bug found. Now Josef has to create Bugzilla ;-) And: rpm -q --changelog aaa_base | less shows this: * Mon Mar 09 2009 ro@suse.de - touch and chmod some files only if they do not exist before leave them alone otherwise The most recent entries I see there are dated January. Do we have a recent update? Mine was built 2014-01-27. If there has been an update, maybe the change log shows a reversal of that change. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)