Hi,
I am working through trying to get my RPi Ubuntu Server + Nextcloud Snap to sync with my new AL installation on the lappy. I’m making progress (thanks @GreenMartian )
As part of this I am now looking at permissions
I don’t understand why all my folders and files seem to have executable permission for owner, group and others.
For example, on the RPi ( root root is what I am expecting):
drwxr-xr-x 33 root root 4096 Oct 12 10:26 'Audio Books'
drwxr-xr-x 9 root root 4096 Oct 12 10:34 Boats
drwxr-xr-x 4 root root 4096 Dec 2 09:00 'Calibre Library'
drwxr-xr-x 12 root root 4096 Feb 15 12:15 Cars
-rwxr-xr-x 1 root root 13352 Aug 28 2014 'Change Residencia Authorisation.docx'
On the new lappy the permissions are identical (except for leigh users, as expected), again perhaps expected as I have been syncing these files between the old ASUS lappy and RPi Nextcloud for years.
The thing is, I don’t understand why all items have executable status, neither if they should do.
It is entirely possible that I did this in the (distant as I have no memory of it) past with a global chmod
, or is this something that the system does so that when you click on an .pdf file (for example) it opens with atril or whatever?
Can anyone clarify for me please?
EDIT:
I did some tests with new files and folders to eliminate the possibilitiy that I had somehow used chmod
before:
I made some new folders, one I made on the Lappy and then synced with Nextcloud, the other I made on Nextcloud (via web interface) and then synced with the lappy, both had the same permissions, with executable for all:
drwxr-xr-x 2 root root 4096 Feb 16 09:24 'Folder Created on Lappy'
drwxr-xr-x 2 root root 4096 Feb 16 09:19 'Folder created on Nextcloud'
I then made some new files, one I made on the Lappy and then synced with Nextcloud, the other I made on Nextcloud (via web interface) and then synced with the lappy, both had the same permissions, which didnt have executable this time:
-rw-r--r-- 1 root root 0 Feb 16 09:18 'Created on Lappy.txt'
-rw-r--r-- 1 root root 4 Feb 16 08:51 'Created on Nextcloud.md'