RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Backup permissions in linux

Here is a tip on how to backup file permissions in Linux using getfacl. This is very useful technique if you want to prevent someone or you to change file permissions of certain set of files or directories. By using a getfacl command we can take a snapshot of file permissions :

getfacl -R /var/www/myweb > permissions.acl

This will backup permissions of all files and directories within  /var/www/myweb and myweb directory itself. -R ensures that the /var/www/myweb will be traversed recursively to include all files and directories.  

Now, that we have set of permissions stored in a single file permissions.acl we can restore them by:

setfacl --restore=permissions.acl

Since file permissions.acl contains a full path to all files and directories within /var/www/myweb there is no need to specify where a path to where permissions should be restored.

Share this linux post:

Submit Backup permissions in linux in Delicious Submit Backup permissions in linux in Digg Submit Backup permissions in linux in FaceBook Submit Backup permissions in linux in Google Bookmarks Submit Backup permissions in linux in Stumbleupon Submit Backup permissions in linux in Technorati Submit Backup permissions in linux in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download