[SOLVED] How to copy to preserve original permissions and ownership after crash
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to copy to preserve original permissions and ownership after crash
Hi guys,
I have a situation.
I removed compiz the other day and that crashed my system.
So I used a live CD, moved all my data to an external hard drive using cp -avr command in the hope I was going to keep all my permissions.
I kept the same username when I reinstalled linux but the easy move that I had anticipated is not working.
My archives are showing 600 instead of 644 and my directories 700 instead of 755
There are so many layers of directories that I was wondering if there might be anything I could easily do to make the move onto their new home partition other than having to run a script?
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
when copying with the cp ommand use the -p switch as root to preserve the permisions, better yet if you are moving a lot of data use tar which will keep permissions etc, any thing you may have already copied have probably lost the origanal perns and will now have whatever perms the copy command issuer had.
ALWAYS MAKE A BACKUP before uninstalling system software.
when copying with the cp ommand use the -p switch as root to preserve the permisions, better yet if you are moving a lot of data use tar which will keep permissions etc, any thing you may have already copied have probably lost the origanal perns and will now have whatever perms the copy command issuer had.
ALWAYS MAKE A BACKUP before uninstalling system software.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.