"chmod 0644 filename" will change the permissions of filename to readable. This is normally the "right" permissions for a regular file to have. There are exceptions.Jakob77 wrote: Wed Sep 20, 2023 4:08 pm Thank you very much.
I have to look more into the code before I ask more about it.
If I mess things up and create new issues when I with Thunar remove permission to run as a program on all files in a folder, then I am afraid I have already messed up before I asked here.
"chmod 0755 dirname" will change the permissions of dirname to readable + executable. This is normally the "right" permissions for a regular directory to have. There are exceptions.
"find dirname -type f" will return a list of all files in and beneath dirname.
"find dirname -type d" will return a list of all directories in and beneath dirname.
This should be enough knowledge to get you started on figuring out how to find and change permissions on almost anything.
Extra credit: find supports an "-exec" argument that can used to run a command on the files/directories it returns. It also supports a "-perm" argument I mentioned earlier, and "\!" can be used to negate the permissions check, i.e., "find dir -type d \! -perm 0755" should give a list of all directories and subdirectories that do not have mode 0755.
Absolutely correct. Windows filesystems, including FAT32, exFAT, and NTFS don't handle UNIX-style file modes in the same way and so using different operating systems to move files around can be troublesome. The "mtree" program can useful here, since it can check the contents of a file tree, write down the permissions of those files and directories, and save them to disk as a "spec file". It can also then repair those permissions later on if you provide the spec file.Jakob77 wrote: Wed Sep 20, 2023 4:08 pm Can the reason for the problem be that the external SSD solid USB drive has been formatted by Windows 10 ?