FG
💻 Software

How to copy a Read-Only file and make the copy writable with a single cp command?

Fresh5 days ago
Mar 15, 202617854 views
Confidence Score0%
0%

Problem

How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to copy a Read-Only file and make the copy writable with a single cp command?

Low Risk

You should look at the install command. From man install

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment