Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2692  / 3 Years ago, tue, september 7, 2021, 4:29:55

Not being an expert in Linux/Ubuntu, I had to install from scratch today and messed up w/file permissions.



The thing is that, when backing everything up before reinstalling, a couple of important documents couldn't be copied to the external drive, so I used gksudo nautilus to be able to.



Now I've copied them back and I can't use them. They are locked, a lock icon appears on a corner and the original error message shows again.



Is there a graphical/easy way to set file permissions back to normal?



I've read about chmod fchmod and chown and I would like to avoid them if possible. If there's no choice, can any of you please give me a quick example on how to use it?



Thank you so much Ub. Community!


More From » permissions

 Answers
5

To chmod on many files at a time just use the -R thingy to do it recursively(subfolders, files etc).



So if I am in folder /myfolder and I want to make all files/subfiles/folders/subfolders in there to belong to me and have all accesses I would do:



chmod -R 770 *
chown -R myname:myname *


So just replace myname with your name in Ubuntu. You don't need to change anything in the first one.


[#42369] Wednesday, September 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sharall

Total Points: 407
Total Questions: 127
Total Answers: 121

Location: Saint Helena
Member since Fri, Mar 26, 2021
3 Years ago
;