Changes

From SME Server
Jump to navigationJump to search
489 bytes added ,  23:22, 10 January 2014
Line 192: Line 192:  
|-
 
|-
 
| rpm -qf <filename> || reports what package a file belongs to
 
| rpm -qf <filename> || reports what package a file belongs to
 +
|-
 +
| rpm -qV <packagename> || reports if permission and ownership are OK
 +
|-
 +
| rpm --setugids <packagename> || set right group owner to rpm
 +
|-
 +
| rpm --setperms <packagename> || set right permissions to rpm
 
|}
 
|}
 +
 +
===Restore permissions an ownership===
 +
If you want to restore all permissions and right ownership of arpm, you can do this in a root terminal. See [[bugzilla:6851#c15]]
 +
for f in $(rpm -qa); do echo $f; rpm --setugids $f; done
 +
for f in $(rpm -qa); do echo $f; rpm --setperms $f; done
    
===YUM'ing and repositories===
 
===YUM'ing and repositories===

Navigation menu