Forum archive
Permissions issue when making postgres backups in webmin
Maybe somebody here can answer this.
I have an ubuntu server running 10.04.1 which I have webmin 1.52 installed. In the Postgres server tab in webmin you can setup and run backups of your databases. When I try to make a backup and choose the option "Create destination directory?" I choose Yes, because I want each backup in its own directory. When I click "backup now" the script fails and says permission denied when trying to write to the directory it just made and I have to log into the server and do a chmod to that directory and then run the backup in webmin again. So my question is why am I getting that permissions error when I try to make a directory in the postgres backup GUI? Shouldn't it make the directory its making automatically writable? or am I missing something?
Hope I was clear enough, thanks!
Even if you're not then it should be somewhat similar (TKL v11.x is basd on Ubuntu 10.04).
My first guess is that folder is owned by root, but the backup process is running as a limited user. To troubleshoot this, I'd check who owns the newly created folders, what permissions are set by default. Then change permissions on the folders (to 777) and run your backup. Then check the ownership/permissions of the new files.