Creating database backup as virtual server admin fails

As a virtual server administrator, when you try to create a backup of a database, the process fails. It tries to write to /tmp/.webmin/"whatever" instead of /home/"virtualserver"/tmp - perhaps this is intentional wrt disk space/quota usage.

The database file appears to download in the browser, but then contains this:

"Database backup failed : mysqldump failed :

sh: 1: cannot create /tmp/.webmin/516924_6097_1_backup_db.cgi: Permission denied

<

p>"

Just to clarify, the path to this is [Virtualmin Menu] > Edit Databases > Manage (a database), Backup Database.

Performing this same action as the Superuser admin works normally, as expected.

Status: 
Closed (fixed)

Comments

What are the permissions on /tmp/.webmin on your system? The command ls -ld /tmp/.webmin will show them.

drwxr-xr-x 2 root root 4096 Dec 22 10:26 /tmp/.webmin

OK, I see the bug that causes this now - this will be fixed in the next (1.830) Webmin release.

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Many thanks Jamie (& team)!

Hi, I have the exact same problem as reported by "warphost".

Our platform: Centos 6 Virtualmin: 5.06gpl Webmin v.: 1.831 Theme: Virtaulmin Framed theme, Authentic theme Permissions on /tmp/.webmin

drwxr-xr-x 2 root root 4096 Mar 21 13:37 /tmp/.webmin

Thanks Armin