copy ACL of one file to another using getfacl and setfacl

getfacl <file-with-acl> | setfacl -f - <file-with-no-acl>
If you copy windows file in e.g. cygwin the ACL might miss on the copied file. With this command you can copy the ACL of an existing file to another. WARNING: Existing ACL will get lost.
Sample Output
foo@bar:/tmp> touch file-with-no-acl
foo@bar:/tmp> # create file in windows with acl
foo@bar:/tmp> ll
-rwx------+ 1 foo none 0 Dec  8 23:42 file-with-acl
-rw-r--r--  1 foo none 0 Dec  8 23:41 file-with-no-acl
foo@bar:/tmp> getfacl file-with-*
# file: file-with-acl
# owner: foo
# group: none
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:user:r-x
group:main_users:rwx
mask:rwx
other:---

# file: file-with-no-acl
# owner: foo
# group: none
user::rw-
group::r--
mask:rwx
other:r--
foo@bar:/tmp> getfacl file-with-acl | setfacl -f - file-with-no-acl
foo@bar:/tmp> getfacl file-with-*
# file: file-with-acl
# owner: foo
# group: none
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:user:r-x
group:main_users:rwx
mask:rwx
other:---

# file: file-with-no-acl
# owner: foo
# group: none
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:user:r-x
group:main_users:rwx
mask:rwx
other:---
foo@bar:/tmp>

5
By: tcfusion
2009-12-08 22:56:35

1 Alternatives + Submit Alt

What Others Think

yes, you're right ! I applied the change in command. Thanks netstat -ntlp | grep -w 80 | awk '{print $7}' | cut -d/ -f1
ncaio · 608 weeks and 6 days ago
To get started with norton antivirus, you need to visit Norton.com/setup and enter the norton product key. Norton setup prduct key is a 25 digit activation code.
niki1234 · 12 weeks ago
https://sites.google.com/view/wwwakamsyourpc/ is a windows phone companion to connect your smartphone with the "windows phone app" to access messages, galleries, notifications, apps and many other phone information on your windows pc phone companion Is.
chhanchal · 11 weeks and 4 days ago
www.aka.ms/yourpc is a windows phone companion to connect your smartphone with the "windows phone app" to access messages, galleries, notifications, apps and many other phone information on your windows pc phone companion Is.
chhanchal · 11 weeks and 4 days ago
To get to it, on your PC, open a browser to www.aka.ms/phonelinkpin Use the companion app's camera to scan the QR code that's displayed on your PC with your Android device to link your devices. You'll be asked for a series of device permissions to allow you to access content from your phone and on your PC.
chhanchal · 11 weeks and 4 days ago
Visit https //aka.ms/remoteconnect and open the web browser. Insert the code number on your computer screen Click on the “Next” button. At last, follow the on-screen instructions and complete the...
chhanchal · 11 weeks and 4 days ago
The installturbotax.com with license code program is your fundamental trade-off in the tax code that allows resolving the complexity and the cost of compliance. With a simple and powerful user interface, TurboTax is helping you to file taxes or keep track of your tax returns.
chhanchal · 11 weeks and 4 days ago
For downloading and installturbotax.com with license code first you need to register yourself with Turbotax. TurboTax is a software package for preparation of American income tax returns, produced by Intuit. TurboTax is a market leader in its product segment, competing with H&R Block Tax Software and TaxAct.
chhanchal · 11 weeks and 4 days ago
Bing is the second most used search engine which is owned by Microsoft. it sometimes forces Bing to become the default search engine for your Internet browser, and this article requires How to remove Bing from default search engine? . then you read it.
chhanchal · 11 weeks and 4 days ago
If someone else logs into your computer after you close your Private Browsing window, they’ll be able to see which websites you’ve visited. That’s why in this article we will tell about How to turn off privacy browsing? If you want to know more about this then click here.
chhanchal · 11 weeks and 4 days ago
Iphone has brought a number of innovations to its latest operating system, including Safari’s search bar which is by default at the bottom of the iPhone or iPad’s screen. Which is a pity, but Safari’s address bar can easily be returned to its original position at the top.For more information visit How to move search bar to top? our website.
chhanchal · 11 weeks and 4 days ago
Click Startup tab in Task Manager, and right-click Cortana. Click Disable to remove Cortana from Windows 10 Task Manager. Bottom Line If you want to remove Cortana from For more information visit How to disable cortana? our website.
chhanchal · 11 weeks and 4 days ago
For downloading and installturbotax.com with license code first you need to register yourself with Turbotax. TurboTax is a software package for preparation of American income tax returns, produced by Intuit. TurboTax is a market leader in its product segment, competing with H&R Block Tax Software and TaxAct.
chhanchal · 11 weeks and 4 days ago
Install TurboTax with license code and get your tax expert right away to do your taxes. You can use the free service or try the paid version to get your taxes done.For more information visit install turbotax with license code our website.
chhanchal · 11 weeks and 4 days ago
Turbotax.ca/download - Download Turbotax First, select your preferred plan from the Turbotax dashboard. Follow the on-screen instructions and complete the purchase. Now, go to the download tab and click on the download button corresponding to your plan. The setup file will be saved inside the Windows Download Folder.If you want to know more about this then turbotax.ca/download click here.
chhanchal · 11 weeks and 4 days ago
TurboTax is a software package that provides privileges to people to prepare taxes with ease. Regardless of the complex or simple tax standings, TurboTax is a perfect fit to resolve.If you want to know more about this then install turboTax with license code click here.
chhanchal · 11 weeks and 4 days ago
Install Turbotax with License Code - Turbotax Canada. TurboTax is prominent software amongst the taxpaying class, known for providing benefits on filing annual tax return.If you want to know more about this then install turbotax.com with license code click here.
chhanchal · 11 weeks and 4 days ago
Download the Turbotax software from turbotax.ca/download. It is recognized for its clean and comfy interface for individuals. The application executes like an interview; it drives you through a If you want to know more about this then turbotax.ca/download click here.
chhanchal · 11 weeks and 4 days ago
To install turbotax with license key enter your activation number in the License code box on the activation screen and select Continue to complete installation. You’re free to use the same license code to install the software on up to five computers; you'll need to purchase another license if you need more.
chhanchal · 11 weeks and 4 days ago
Sign in to My Downloads at installturbotax.com with license code . Click on the download arrow beside the product you wish to install.For more information visit our website.
chhanchal · 11 weeks and 4 days ago
To install TurboTax with license code enter your activation number in the License code box on the activation screen and select Continue to complete installation. You're free to use the same license code to install the software on up to five computers; you'll need to purchase another license if you need more.
chhanchal · 11 weeks and 4 days ago
Turbotax.ca/download - Download Turbotax First, select your preferred plan from the Turbotax dashboard. Follow the on-screen instructions and complete the purchase. Now, go to the download tab and click on the download button corresponding to your plan.For more information visit turbotax.ca/download our website.
chhanchal · 11 weeks and 4 days ago
Download the Turbotax software from turbotax.ca/download. It is recognized for its clean and comfy interface for individuals.
chhanchal · 11 weeks and 4 days ago
After you've purchased a downloadable product through TurboTax.com, you can download, install, and activate your turbotax.ca/download product here.For more information can go to website.
chhanchal · 11 weeks and 4 days ago
TurboTax.ca/download - Download and Install TurboTax with activation key code from turbotax.ca/download .For more information visit our website.
chhanchal · 11 weeks and 4 days ago
TurboTax is a software package for preparing US income tax returns produced by Intuit. Click on this link install turboTax with license code to know about it.
chhanchal · 11 weeks and 4 days ago
A report has revealed that TurboTax is the largest and most popular tax-preparation software, handling a solid 30% of electronic filings. If you want to know more about this then click installturbotax.com with license code here.
chhanchal · 11 weeks and 4 days ago
If you want to activate the Disney plus channel on the streaming device, you can get this channel by visiting the disneyplus.com/begin and get the channel using simple steps. All you need is to visit disneyplus.com/begin and create your disney plus account and choose your subscription plan.
chhanchal · 11 weeks and 4 days ago
Download and install on your device and start streaming with disney plus.If you wish to activate the Disney plus channel on the streaming device, you can get this channel by visiting the https://disneysbeginplus.com get the channel using simple steps. Download and install on your device and start streaming with disney plus.Enter the 8-digit code you see on your TV to activate the Disney Plus channel on your device. Sign in to a Disney+ account. Please enter your email and password login details to start streaming movies and TV series from Disney+ Streaming. Click on the link disneyplus.com/begin for more information.By visiting disneyplus.com/begin, you may watch on-demand action flicks, feature movies, and amusing material for children and adolescents.
chhanchal · 11 weeks and 4 days ago
When you shop for software you need to install turboTax with license code. one can easily install TurboTax on Windows 10 with CD.Disney Plus is the most preferred streaming service in the world because it can be connected to any device whether you use web browser, android, mac, LG tv, Samsung tv or any other smart tv. All you need to get started with it is to visit disneyplus.com/begin and follow the simple setup and activation procedure.
chhanchal · 11 weeks and 4 days ago
You have to open the website disneyplus.com/start.You will be prompted to enter the 8-digit activation code in whatever device you are using.Disney Plus is the most preferred streaming service in the world because it can be connected to any device whether you use web browser, android, mac, LG tv, Samsung tv or any other smart tv. All you need to get started with it is to visit disneyplus.com/begin and follow the simple setup and activation procedure.Enter the 8-digit code you see on your TV to activate the Disney Plus channel on your device. Sign in to a Disney+ account. Please enter your email and password login details to start streaming movies and TV series from Disney+ Streaming. Click on the link disneyplus.com/begin for more information.
chhanchal · 11 weeks and 4 days ago
Login to your install turboTax with license code account. Access your order history and TurboTax desktop software downloads, unlocks, and tax documents.Plug in the machine and power it on. Connect the machine to your computer with the USB cord or pair it via Bluetooth.If you want to activate the Disney plus channel on the streaming device, you can get this channel by visiting the disneyplus.com/start and get the channel using simple steps.Download and install disney plus on your device using the simplest setup procedure from disneyplus.com/begin . Create your account and choose your subscription plan and you are ready to stream with disneyplus.
chhanchal · 11 weeks and 4 days ago
All you need is to visit disneyplus.com/begin and create your disney plus account and choose your subscription plan.Connect your disney plus with roku device using simple steps from disneyplus.com/begin and stream unlimited movies, tv shows and much more with disney plus.If you wish to activate the Disney plus channel on the streaming device, you can get this channel by visiting the disneyplus.com/begin and get the channel using simple steps. Download and install on your device and start streaming with disney plus.
chhanchal · 11 weeks and 4 days ago
Plug in the machine and power it on. Connect the machine to your computer with the USB cord or pair it via Bluetooth. Go to disneyplus.com/begin in your browser. Download and install Design Space for Desktop.Follow the on-screen instructions at cricut.com/setup, sign in or create your Cricut ID, and set up your new machine. You will know the setup is complete when you are prompted to do a test cut.
chhanchal · 11 weeks and 4 days ago
Microsoft 365 is the set of all Office apps with some additional features. Go to microsoft365.com/setup to get all the MS office 365 apps on your devices like Windows, Mac, and smartphones.Go to cricut.com/setup in your browser. Download and install Design Space for Desktop.Follow the on-screen instructions at cricut.com/setup, sign in or create your Cricut ID, and set up your new machine.Cricut machines can even cut leather and wood! For your new Cricut, you will also need to have an online account so you can use Cricut’s Design Studio which is the operating software for Cricut machines. cricut.com/setup machines help you design and create personalized designs, from stickers to cards and t-shirts.
chhanchal · 11 weeks and 4 days ago
You have to open the website disneyplus.com/begin . You will be prompted to enter the 8-digit activation code in whatever device you are using.As you guys know cricut machines can even cut leather and wood! For your new Cricut, you will also need to have an online account cricut.com/setup so you can use Cricut’s Design Studio which is the operating software for Cricut machines.
chhanchal · 11 weeks and 4 days ago
It`s really easy to download cricut design space download app. Cricut Design Space is a free app that allows you to access the library of Cricut designs and layer them ...Cricut Design Space is a digital design application that is used to setup and layout projects to create with a Cricut machine.cricut design space includes ...
chhanchal · 11 weeks and 4 days ago
In other words, cricut design space is a free application to interface to a computerized die-cutting device from Cricut. Design Space enables customers to freely download a limitless amount of layouts and ideas. But you need to buy certain photos and fonts from Design Space. Cricut Design Space is the selected methodology of Cricut that allows ...Cricut Design Space install: Open cricut design space by either double-clicking on the icon or by clicking the start button on your computer, then going to all programs and clicking.Search cricut.com/setup to register. Best Deals and Discounts on the Latest Products. Let DailyGuides Find Your Results Today. Here we Have Everything you Need. Information.
chhanchal · 11 weeks and 4 days ago
Check out the Cricut manual guide at cricut.com/setup and set up your new machine. When you have your project design ready for yourself, choose the ‘ Make it’ option. Choose what you will need to load from the ‘Type’ drop-down into the machine.cricut.com/setup is the setup process from where you can get the software or application to download for your device.Download and Install the Cricut Design Space via cricut.com/setup to use the application for your craft project. to setup your Cricut.
chhanchal · 11 weeks and 4 days ago
Amazon mytv is a paid online streaming services used at amazon.com/mytv. It gives users access to a wide range of services like fast delivery, watches unlimited videos online, online movies.Resolve many common issues using HP assistant’s troubleshooters and automated fixes. If the issue cannot be resolved with these tools, HP Support Assistant can help you find additional support resources specific to your device.Get drivers and downloads for your dell supportassist for Home PCs. Download and install the latest drivers, firmware and software.
chhanchal · 11 weeks and 4 days ago
Download and Install the Cricut Design Space via cricut.com/setup to use the application for your craft project. to setup your Cricut.Download & Install the Cricut Design Space from the link cricut.com/setup to explore air 2 for home crafters via Cricut Maker machine.Cricut Design Space - Cutting Machine. cricut design space - Cutting Machine Cricut Design Space application is a software suite for designing and managing Cricut cutting machine project. Its interface is intuitive and easy to use. It provides variety of features such as a library of fonts, tool for creating shapes and cut lines,a feature for ...The cricut.com/setup application a software suite for designing and managing Cricut cutting machine projects. Interface intuitive and easy to use. It has a variety features such as a library of fonts, tool for creating shapes and cut lines,a feature for adding text.
chhanchal · 11 weeks and 4 days ago
In my computer hardware is known as a microprocessor. It processes instructions gathered from the code in programs and other files. A CPU has four primary functions: fetch, decode, execute, and write back.My Computer Desktop is a Microsoft Windows feature first found in Windows 95 and included with all later versions that allows you to explore and manage the contents of your computer drives.Some Cricut machines can even cut leather and wood! For your new Cricut, you will also need to have an online account cricut design space so you can use Cricut’s Design Studio which is the operating software for Cricut machines.
chhanchal · 11 weeks and 4 days ago
Cricut is a machine used to cut paper, cardboard, vinyl, fabric, and many other kinds of materials.Now the question that comes to mind is that how to set up a Cricut machine if you have bought a new machine from the cricut design space.Some Cricut machines can even cut leather and wood! For your new Cricut, you will also need to have an online account cricut design space so you can use Cricut’s Design Studio which is the operating software for Cricut machines.cricut.com/setup - A Cricut is an electronic cutting machine that can cut all sorts of designs from materials like paper, vinyl, card stock, and iron-on transfers. Some Cricut machines can even cut leather and wood!
chhanchal · 11 weeks and 4 days ago
Cricut is a machine used to cut paper, cardboard, vinyl, fabric, and many other kinds of materials.Now the question that comes to mind is that how to set up a Cricut machine if you have bought a new machine from the cricut design space.Cricut Design Space is the software used with your cutting machine. In order to use your machine, you first need to download and install cricut design space.Some Cricut machines can even cut leather and wood! For your new Cricut, you will also need to have an online account cricut design space so you can use Cricut’s Design Studio which is the operating software for Cricut machines.
chhanchal · 11 weeks and 4 days ago
cricut.com/setup - A Cricut is an electronic cutting machine that can cut all sorts of designs from materials like paper, vinyl, card stock, and iron-on transfers. Some Cricut machines can even cut leather and wood! For your new Cricut.cricut.com/setup is a application to interface to a computerized die-cutting device from Cricut. Design Space enables customers to freely download a limitless amount of layouts and ideas. But you need to buy certain photos and fonts from Design Space.dell support assist is an automated technical support solution for Dell PCs, and Tablets. Dell Support Assistant scans your PCs and laptops and checks if there are updates available for drivers and software.or you can visit Dell official website for Dell Support Assist.
chhanchal · 11 weeks and 4 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 4 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: