11-05-2018, 06:34 PM
(This post was last modified: 11-05-2018, 06:35 PM by Tim Curtis.
Edit Reason: etc
)
(11-05-2018, 04:25 PM)christopherr Wrote:(11-05-2018, 04:16 PM)christopherr Wrote: There are some inconsistencies in the folder ownership:
Code:drwxr-xr-x 4 root staff 4096 Nov 5 07:46 imagesw
but
Code:drwxr-xr-x 2 root root 172032 Nov 5 08:47 thmcache
Could it be related to the issue of not being able to remove the images?
After a quick google:
Quote:staff: Allows users to add local modifications to the system (/usr/local) without needing root privileges (note that executables in /usr/local/bin are in the PATH variable of any user, and they may "override" the executables in /bin and /usr/bin with the same name). Compare with group "adm", which is more related to monitoring/security.
Is there a special reason we are using root : staff for folders in /var/local/ ?
Standard Debian/Raspbian ownership for /var/local is root | staff.
Normally the thmcache directory will have root | staff ownership except if its deleted. In that case it will be created afresh by thmcache.php which runs as root, thus the newly created directory will have root | root ownership. There will also be a log message "thmcache: info: Missing thmcache dir, new one created"