ERROR — FAILED TO CREATE TEMP DIRECTORY /HOME/.WEBMIN-1008-XXXXXX

When a virtualmin user signs in and tries to use the File Manager, they just get the following;

ERROR — FAILED TO CREATE TEMP DIRECTORY /HOME/.WEBMIN-1008-XXXXXX

I checked multiple users and they are all the same. Works as the main admin.

Status: 
Closed (fixed)
Virtualmin version: 
6.16
Webmin version: 
1.973

Comments

Ilia's picture
Submitted by Ilia on Thu, 04/15/2021 - 12:49

Hi,

This is expected as regular user has no permissions to write to /home directory. Do not use /home for tmp files!

I don't remember ever setting it that way. Where do I go to adjust that?

Ilia's picture
Submitted by Ilia on Wed, 05/19/2021 - 15:21

This can be set on Webmin ⇾ Webmin Configuration: Advanced Options page.

Howdy -- take a peek in Webmin -> Webmin -> Webmin Config -> Advanced Options -> Webmin Temporary Directory.

Note that you can change the temp dir to an alternate directory, and some folks do indeed change the temp dir due to space constraints in /tmp. However, if it's changed, you would want it to be a dedicated directory, and the permissions of the new directory would need to be set the same as /tmp.

So you could use something like /home/.webmin as a temp dir if you wanted an alternative to /tmp, you'd just need to set the owner and group to "root" (with "chown root:root /home/.webmin" , and the permissions would need to be 1777 (with "chmod 1777 /home/.webmin").

However, if you don't need to use an alternate directory, you can just change it back to /tmp.

perfect, thanks