I have Duplicati running on a Ubuntu server. I configured a backup to write to an external hard drive, but it always gives me “access denied” errors. The drive is owned by root and its permissions are set to 755 and don’t seem to be changeable even with a “sudo” command. To see what user it was running as, I used this command:
ps aux | grep duplicati
Welcome to the forum @swadams2 but please note that this forum is mainly expert in Duplicati.
What happens? Any error? Did you run the mount command to see if the drive is now read-only?
You could try asking on an Ubuntu forum, but there are already various ideas available by search.
From a Duplicati point of view, if the permission (not the mount) is the only problem, you could run Duplicati as root, however you might be better off trying to figure out why the drive does as it does.
I didn’t see an error message when I tried to change permissions on it. I was able to get Duplicati to make the backups on the same disk it was on and manually copy them over to the external hard drive, so it’s writable.
Yes, I did that with a “sudo” command. I just tried changing the ownership of the directory on the external hard drive, again with sudo, and got “Operation not permitted.”
OK, so it’s not just the root, but a general Linux failure somehow after you made the folder.
If the problem is that the folder is 755 root, you might be able to get 777 root with umask 0.
Does the same operation work on other drives? If not, are any special security practices in use?
If it’s only on the external, how does that external drive show up on the mount command output?
Do you have any other drives to use? Do you know how drives are formatted? This sounds odd, however if you can characterize it well, the wisdom of the Web might know the issue. Go search.
From a Duplicati point of view, it needs OS level write permission provided to it like any program.
I normally access this server remotely via ThinLinc and I’m not the one who formatted the external hard drive and plugged it in, nor do I know if there are others, but here’s how it looks in the mount command output:
/dev/sda2 on /mnt type exfat (rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)
General idea seems to be that you can fix it with mount options. There is a lot of info available, however these are Linux questions, not Duplicati questions. If you want to make Duplicati root:
talks about how it can be run by systemd. If you also want TrayIcon, use --no-hosted-server otherwise TrayIcon will talk to itself to run as your user, thus not be able to write root-only drive.