On 06/13/2014 11:47 AM, Carlos E. R. wrote:
What happened in that case was that you had /root/.bash_history symlinked to /dev/null, and the postinstall script of the aaa_base rpm did: touch root/.bash_history chmod 600 root/.bash_history
which changed /dev/null, not the symlink (which is impossible).
The solution, according to Cristian, would be to «"touch & chmod" only if it the file doesnt exists.»
But I don't see in the thread a bugzilla number for the issue.
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 Have fun, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org