On Sun, May 10, 2026, at 10:18 AM, G.W. Haywood wrote:
> > ...
> > the CGI interface can't write config files, getting "TextFileWrite:
> > Failed to write /etc/backuppc/localhost.pl.new" when I try to save
> > ...
> > ...
> > I saw the apache user group (www-data) didn't have write access so
> > I added group write access to the directory and some files:
> > ...
> > But still isn't working.
> 
> I'm not sure if you have told us the user:group ownership of directory
> /etc/backuppc, but if as I suspect it's backuppc:backuppc then adding
> group write won't allow apache2 - running as www-data:www-data - to
> write in there unless you also add the www-data user to the backuppc
> group.  Plus it's trying to write "localhost.pl.new" that fails, not
> "localhost.pl", so changing the perms on "localhost.pl" won't help
> either.  (BackupPC in this case writes a new file, and then moves it
> into place over the original, to make the operation more 'atomic'.)

/etc/backuppc directory is user backuppc, group www-data (backuppc:www-data).  
Permissions are drwxrwxr-x so www-data should be able to write to it.

> > Apache is running as www-data (user and group):
> > ...
> > Any suggestions?
> > ...
> 
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to