Submitted by support@smstv.com on Thu, 04/15/2021 - 11:29
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
Hi,
This is expected as regular user has no permissions to write to /home directory. Do not use
/home
for tmp files!Submitted by support@smstv.com on Wed, 05/19/2021 - 13:05 Comment #2
I don't remember ever setting it that way. Where do I go to adjust that?
This can be set on Webmin ⇾ Webmin Configuration: Advanced Options page.
Submitted by andreychek on Wed, 05/19/2021 - 15:23 Comment #4
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.
Submitted by support@smstv.com on Wed, 05/19/2021 - 15:50 Comment #5
perfect, thanks