Rick Johnson wrote:
On 6/4/2003 7:03 AM, Kevin Passey wrote:

Can anybody help me here.

I have corrupted various permissions on a couple of directories - is there a
way to re-set them to the installed status.


I am having problems with amanda and firestarter

Thanks

Kevin Passey



rpm can help you out here. rpm -V <packagename> is a good start I believe. Check the man page to verify usage. The -V switch should display permission changes, user/group ownership modification, MD5 sum matches, etc.


-Rick

Or do this:


rpm -q --queryformat '[%{FILENAMES} %{FILEMODES:perms}\n]' \ <packagename>

That will print all the filenames in a package along with corresponding permissions that they were packaged with.

With a little scripting you can extract these permissions and apply it to the files in question.

--
--Alistair


-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to