Articles in this section

Unable to manage permissions in Plesk File Manager: Error: Access is denied. (Error code 5) at GetTempFileName in C:\Windows\TEMP

kb: technical Plesk Obsidian for Windows

Applicable to:

  • Plesk Obsidian for Windows

Symptoms

  • Unable to change permissions from a file or directory in Plesk File Manager at Domains > domain > File Manager > example_dir > change permissions > Apply or OK. The following error is show in Plesk:

    PLESK_ERROR: Error: Access is denied. (Error code 5) at GetTempFileName in C:\Windows\TEMP
    at (tempFileName line 123)
    at loadFromConfig(C:\Inetpub\vhosts\example.com.plesk.Security, false, true)(DiskSecurity::EntryCollection::loadFromConfig line 907)
    at loadFromFile(C:\Inetpub\vhosts\example.com.plesk.Security, false)(HostingSecurity::SecurityManager::loadFromFile line 239)
    at execute "C:\Program Files (x86)\Plesk\admin\bin\filemng" enterprise-pro --permissions --set-common "--file=C:\Inetpub\vhosts\example.com\httpdocs\example_dir" "--xml=C:\Program Files (x86)\Plesk\tmp{e6fa0d08-5811-11ea-8bb8-94fb7cfc58de}" --inherit-from-parent(RunTime::RunAsUser::run line 223)
    (Error code 1)

  • Classic ASP.NET-based website fails to open with following error:

    PLESK_INFO: error '80004005'
    /Index.asp, line 13

    OR

    PLESK_INFO: Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.

  • The "Create files / write data" and "Create fodlers / append data" permissions is missing on Windows > right-click the C:\windows\temp directory > Security (tab) > Advanced > select Users > click Edit:

    perms1.png

Cause

Some user groups do not have enough permissions on C:\windows\temp directory, thus, fails to create temporary files in there from services that need it.

Resolution

Add the necessary permission on C:\windows\temp:

  1. Connect to the server via RDP;

  2. Right-click C:\windows\temp\, go to Properties > Security (tab) > Advanced > select Users > click Edit, toggle the following two permissions:

    • Create files / write data
    • Create fodlers / append data

    perms2.png

  3. Check if there are any "Deny" rules for other groups
    Deny1.JPG

  4. Switch them to "Allow"

  5. Click OK.

Was this article helpful?

Comments

2 comments
Date Votes

Please sign in to leave a comment.