Home » Questions » Computers [ Ask a new question ]

How do I find and modify permissions on one filetype in an Ubuntu terminal? [duplicate]

How do I find and modify permissions on one filetype in an Ubuntu terminal? [duplicate]

I've just upgraded from Ubuntu 8.04 to 9.04, added an extra hdd for /home and used an iPod (FAT32, sadly) to hold/transfer the files in the interim.

Asked by: Guest | Views: 323
Total answers/comments: 3
bert [Entry]

"chmod -R a-x *.txt

would be an example of this, but you'd have to repeat it for all different file patterns."
bert [Entry]

"As an answer to your actual question, the find | xargs solution is the right one.

However, to address your root problem, it is impossible to correctly restore all the file permissions without a reference. If you have the space, you could create a virtual machine, install all the same packages (to find out how, search for dpkg get set selections) as your real machine, and then ""copy"" the permissions using chmod's --reference option.

If you decide to go this route, I can edit my post with more detailed instructions."
Bfmrdm [Entry]

order atorvastatin 80mg <a href="https://lipiws.top/">order atorvastatin without prescription</a> purchase lipitor online