Ubuntu Version:
26.04LTS
Desktop Environment
KDE Plasma
Problem Description:
The Backdrop CMS Websites on my Laptop (identical to my PC) are giving permission errors.
The installation on both is identical, same permissions etc. so this should not be happening.
The Backdrop Community cannot seem to find the cause.
I have searched all over the place and the only thing I have found is here but I do not have SELinux running
Relevant System Information:
I have just changed the OS on my PC and Laptop to Kubuntu 26.04LTS from Gentoo Linux with KDE Plasma which I have used for very many years.
I have installed LAMP Server with MariaDB on both so I setup my local sites for Backdrop CMS which I have also used for many years. I used Drupal before that.
I have Apache and php-fpm setup with user:group as francis:www-data on both machines
Screenshots or Error Messages:
The error message I am getting on the Laptop is this:
The directory files is notwritable. The directory ../privateis notwritable. You may need to set the correct directory at thefile system settings page or change the current directory's permissions so that it is writable.
So what it is saying is that the program cannot write to those folders.
What I’ve Tried:
I have a fresh install of Kubuntu 26.04LTS and LAMP server on the PC and Laptop.
The location of the sites locally is identical (separate btrfs partitions ) I used rsync so copy the websites from the laptop to my PC so they are identical.
So the permissions on $HOME/FG-DOCS/public_html are drwxrwxr-x 1 francis www-data
and on the site folder and the files folder are the same. For the private folder they are drwxrwx--- 1 francis www-data
I use this script on all my sites to set the permissions:
#!/usr/bin/bash
chown -R francis:www-data .
echo "Setting all directories to 755"
find . -type d -exec chmod u=rwx,g=rx,o=rx '{}' \+
echo "Setting all files to 644"
find . -type f -exec chmod u=rw,g=r,o=r '{}' \+
echo "Special Permissions on config, private and files"
chmod 775 web/modules
chmod 775 web/files
find web/files -type d -exec chmod ug=rwx,o=rx '{}' \+
find web/files -type f -exec chmod ug=rw,o=r '{}' \+
find config -type d -exec chmod ug=rwx,o=rx '{}' \+
find config -type f -exec chmod ug=rw,o=r '{}' \+
chmod 770 private
echo "Setting settings.php file to 440"
chmod 440 web/settings.php
echo "Setting all .htaccess files 444"
find . -type f -name .htaccess -exec chmod u=r,g=r,o=r '{}' \+
echo "Setting FixPermissions to 750"
I have even done a fresh install on the Laptop, same problem. I have tried a folder on the same partition as the home folder on the Laptop, but I get the same error.
I created a Virtual Machine running Ubuntu 24.04LTS which works perfectly.
So with everything being identical on both machines why do I get a permissions error on the Laptop and not on my PC?