I thought I understood how permissions work in Linux, until I became aware of this situation.
I have a subfolder, oddball that contains files with following permissions:
ls -aRl /mnt/oddball
/mnt/oddball:
total 120
drwx------ 2 bendipa bendipa 4096 Aug 27 00:16 .
drwxr-xr-x 6 root root 4096 Jul 1 15:51 ..
-rw-rw-r-- 1 bendipa bendipa 12 Aug 27 00:16 Adoc.txt
-rwx------ 1 bendipa bendipa 12655 Aug 26 18:16 .IntBnkDet.doc.pgp
-rwx------ 1 bendipa bendipa 14550 Aug 26 19:04 .PersonalDetail.odt.pgp
-rwx------ 1 bendipa bendipa 76357 Aug 15 15:43 .StatePensionGateway.doc.pgp
The problem is every time I make a new file within /mnt/oddball it assumes permissions shown as with the file Adoc.txt, whereas I assumed files would take permissions from their parent folder; in this case oddball's are shown as the first of the output line permissions listed. I note the parent folder of oddball, /mnt is root owned and shows permissions different to oddball, but would not expect those to have any effect on oddball's files.
Of course it's easy enough to change the permissions of new files in /mnt oddball in the terminal, but having to do so each time a file is created is a bit tedious. Or is this a necessity in Linux?
/mnt/oddball?