• Join Now
  • Sign In
  • Cart
  • Instant Setup
  • Download
Logo
  • About
    • For Developers
    • For Agencies
    • For Designers
    • For Anyone
    • Testimonials
    • Showcase
    • Our Philosophy
    • Blog
    • Instant Setup
  • Community
    • Members
    • Forums
    • Chat
    • Karma
    • International
    • Jobs
    • eNewsletters
  • Developers
    • Download concrete5
    • Join Beta Team
    • Translate concrete5
    • Bug Tracker
    • Submit to Marketplace
    • Code Submissions
    • News
    • Community Leaders
    • Related Projects
  • Marketplace
    • Add-Ons
    • Themes
    • Hosting
    • Training
    • Add-on Installation
    • Deal Of The Day
    • Swag
  • Enterprise
  • Documentation
    • Getting Started
    • Editor's Guide
    • Learn concrete5
    • Developers Index
    • How-Tos
  • How-Tos

Backup and Restore File Permissions In Linux

Posted byTechBlessings in Designers on Mar 10, 2011.
5 people like this.

Introduction

We are always messing with file permissions! If something does not work, it is simply a matter of time before we start to believe that messing with the file permissions will solve all our problems. But, before you set your entire website to owner: wwwdata group:wwwdata and permissions 777, you had better make sure your take a backup of the permissions.

Backup File Permissions

To backup the permissions, use the getfacl tool. So for example, if your Concrete5 installation is in a folder called Concrete5, simply enter this command:

getfacl -R Concrete5 > permissions.acl

This will recursively (that's what the -R does) back up all of the files in the Concrete5 folder and store them in a file called permissions.acl.

Now you can mess with the permissions all you want and not be concerned about not getting them back to the proper form.

Restore File Permissions

To restore your permissions, use this command:

setfacl --restore=permissions.acl

This will reset all of the permissions back to where they were when you backed them up.

How-To Tags

permissions, owner, backup, linux

Related How-Tos

None.

  • Documentation
  • How-Tos
  • Designers
  • Backup and Restore File Permissions In Linux

Do you have questions

  • What are users saying?
  • Who is using concrete5?
  • What makes concrete5 easy?
  • Why develop on concrete5?
 

We’re on “The Twitter”

RT @joomkit: @olivierk go #Concrete5 over WP anyday (@roweenaweb - shocked?)

Follow concrete5

About

  • For Developers
  • For Agencies
  • For Designers
  • For Anyone
  • Testimonials
  • Showcase
  • Our Philosophy
  • Blog
  • Instant Setup

Community

  • Members
  • Forums
  • Chat
  • International
  • Jobs
  • eNewsletters

Developers

  • Download concrete5
  • Join Beta Team
  • Translate concrete5
  • Bug Tracker
  • Beta
  • Submit to Marketplace
  • Code Submissions
  • News
  • Community Leaders
  • User Doc Group
  • Related Projects

Marketplace

  • Add-Ons
  • Themes
  • Hosting
  • Training
  • Add-on Installation
  • Deal Of The Day
  • Swag

Documentation

  • Getting Started
  • Editor's Guide
  • Learn concrete5
  • Developers Index
  • How-Tos

Legal

  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Contact Us
© 2008 to 2013 Concrete CMS Inc. All Rights Reserved.

Sign In?

You must have a user account and be signed to perform this action.

  • Sign In
  • Register