Permission Issues

Will the below fix all the files on the drive to be -rw-rw-r–+ versus -rw-r–r–?

find "/mnt/My Files II" -type f -exec chmod 664 {} +

See my thread on LinuxQuestions. Thanks

https://www.linuxquestions.org/questions/linux-newbie-8/fixing-folder-and-file-permissions-4175750129/

rw → 4+2=6
rw → 4+2=6
r → 4

The final permissions from that command for all files would be -rw-rw-r--

1 Like

no + at the end? is the + unnecessary? Will that do ALL files on the drive leaving the folders and subfolders untouched?

It is a difference of notation, but 664 means Read and Write for the owner and the group, and Read only for the others.

1 Like

OK thanks much appreciated, now just.

Will that do ALL files on the drive leaving the folders and subfolders untouched?

All files within "/mnt/My Files II" will change, leaving the folders unchanged, based on the command you posted above.

1 Like

Did the find "/mnt/My Files II/That Girl (1966)" -type f -exec chmod 664 {} + and according to ls -l the files are now -rw-rw-r- like they should be, but I still cannot send the files via LocalSend. Any idea what’s happening? Thanks

This is an application-specific question, but this might give you a hint: Error if the destination is on another disk in linux · Issue #1168 · localsend/localsend · GitHub . Did you install it as a flatpak?

No I don’t use containerized apps unless there is no other choice. As for it be a app specific issue I don’t think so. I’m sure it’s a Linux permission issue and something else besides the above needs to be fixed. Then there is the fact that that GitHub issue has nothing to do with this.

One needs to check what user-group the application uses to access files. That user-group must be the owner of the files, for write access to work.

The permissions for That Girl and it’s folders now match the permissions 9-1-1 which are the correct permissions. I can send 9-1-1 without any issue so by right there should be no issue sending That Girl. I want to get to the bottom of what is going on with the file system befor it gets too out of hand.

OK so I decide since we already have KDE Connect to set it up. After that I sent all episodes for That Girl to Gary’s system without issue. Seems you’re right it must be a LocalSend issue. I had already created a issue thread on their GitHub, so will see if they have anything to say.