-groupadd -f -r -g 60 utmp
-update-db
-
-%post
-if [ -f /var/log/wtmp ]; then
- mv -f /var/log/wtmp /var/log/wtmp.rpmsave
-fi
-
-for i in lastlog wtmpx btmpx; do
- if [ ! -f /var/log/$i ]; then
- >/var/log/$i
- fi
-done
-
-chmod 0644 /var/log/lastlog /var/log/wtmpx
-chmod 0640 /var/log/btmpx
-chgrp utmp /var/log/wtmpx