Score:0

Green file names and folders after backing up data in Linux

us flag

I've recently wanted to switch from Fedora to Ubuntu and after backing up my data to an external hard drive, installing Ubuntu and moving them back I encountered an unpleasing appearance.

All of my files are green (they have all permissions for user, groups, others) whether they are executables, pdfs, text and so on. Same applies for directories and they're shown with a blue font and green background.

The issue isn't really the coloring as I "just" need to restore the files to their original rights, but how could I do this effectively ?

In the best case scenario, what I think would be the best to do would be to remove all executable rights on all the files with extensions but even with solution I think a lot of other binaries could have extensions, if so I don't know which.

I guess the green coloring isn't the worse, but mostly the fact that the folders are awful to read.

This is the kind of folder colors I would try to get rid of

I tried playing with chmod recursively, removing "others" rights but other kind of coloring keeps appearing, and regarding the executable/or not files colors, I'm not sure at all how to (if possible) to do.

vanadium avatar
cn flag
Why talk about colors? It are the permissions probably that you want to change. To restore file permissions properly, they must have been properly stored in the backup in the first place. Provide concise info on how you backed up, how you restored, what the file systems are on your backup (unless you used tar), and delete some information on the colors to make the post shorter and more concise.
pironc avatar
us flag
The thing is I simply dragged and dropped files like I usually do I never had issues, I find it weird it restored everything to 777 and why it did that in the first place. (without tar zip etc...)
FedKad avatar
cn flag
If the external filesystem is NTFS or FAT, then you have lost any of the original permissions.
pironc avatar
us flag
oh well this explains it all. It's no big deal but still is a pain to read, I'll try at least changing some rwx values for directories in order to see them better. thanks for the precisions.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.