Re: Resetting File and Directory Permissions To Original Values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 12, 2009 at 11:20 PM, Robert L Cochran
<cochranb@xxxxxxxxxxxxx> wrote:
> While trying to fix a problem where users of the Fedora version of Wordpress
> are unable to upload images using the Wordpress screens and code, I spent a
> lot of time modifying file and directory permissions in
> /usr/share/wordpress/wp-content/uploads/*, trying various combinations of
> user-group-other permissions and ownerships in a vain attempt to get uploads
> to work in this way. The problem has since been fixed by modifying SELinux
> file contexts.
>
> Now I'm left with a lot of permissions in /usr... that are no longer set to
> the original permissions and ownerships held by those files and folders. Is
> there an automated way of resetting the permissions back to what they once
> were for all except the uploads directory in question?
>
> Is there a dictionary available that lists the exact permissions that should
> be on every file and folder in /usr?

See the --dump and --setperms options to rpm which can help you get
things back to a normal state.

John

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux