Восстановление прав и владельца rpm

Материал из Eugene Paniot Wiki
Перейти к: навигация, поиск

Check and reinstall

for r in $(rpm -qa)
do 
   echo "DO $r"
   rpm -V $r || yum reinstall -y $r
done

Repair perms

for r in $(rpm -qa)
do 
   echo "DO $r"
   rpm --setugids $r
   rpm --setperms $r
done
fixfiles -l logfile relabel
touch /.autorelabel
reboot


<seealso> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sec-sel-fsrelabel.html Relabeling a File System </seealso>