Unable to open Plesk file manager for the domain. Internal error: Unable to lookup SID for name. Unable to lookup SID for name username: (1332)

Refers to:

  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Created:

2016-11-16 13:20:54 UTC

Modified:

2016-12-21 20:30:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to open Plesk file manager for the domain. Internal error: Unable to lookup SID for name. Unable to lookup SID for name username: (1332)

Symptoms

Unable to open file manager for the domain. The following error appears:

Internal error: Unable to get file (C:\\Inetpub\\vhosts\\example.com) attributes: (5) Access is denied. at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\filemng.exe" precision list dirs C:\\Inetpub\\vhosts\\example.com\\(RunTime::RunAsUser::run line 260) (Error code 1)
Message Unable to get file (C:\\Inetpub\\vhosts\\example.com) attributes: (5) Access is denied. at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\filemng.exe" precision list dirs C:\\Inetpub\\vhosts\\example.com\\(RunTime::RunAsUser::run line 260) (Error code 1)
File Agent.php
Line 212
Type PleskUtilException

Internal error: Unable to lookup SID for name username: (1332) No mapping between account names and security IDs was done. (Error code 1)
Message Unable to lookup SID for name username: (1332) No mapping between account names and security IDs was done. (Error code 1)
File Agent.php
Line 212
Type PleskUtilException

Cause

  1. The fp_adm username is improperly set.
  2. User username does not exist

Resolution

  1. Check if database contains the proper value of fp_adm and www_root points to valid folder:

    >cd "%plesk_dir%"\\mysql\\bin
    >mysql -uadmin -p -P8306 psa
    mysql> select sys_user_id,fp_adm,fp_pass,www_root from hosting where dom_id=(select id from domains where name="amour.org")\\G;

    sys_user_id: 307
    fp_adm: username
    fp_pass: <password>
    www_root: C:\\Inetpub\\vhosts\\example.com\\httpdocs

    mysql> select id,login,home from sys_users where id=307\\G;
    id: 307
    login: username
    home: C:\\Inetpub\\vhosts\\example.com\\

    Make sure the user username has permissions to access the C:\Inetpub\vhosts\example.com\httpdocs :

    >icacls C:\\Inetpub\\vhosts\\example.com\\httpdocs
    SERVERNAME\\IUSR_username:(CI)(RX)
    SERVERNAME\\IUSR_username:(OI)(IO)(R)
    SERVERNAME\\username:(OI)(CI)(F)

    Set permissions if they are wrong:

    >for %x in ("IUSR_username:(CI)(RX)","IUSR_username:(OI)(IO)(R)","username:(OI)(CI)(F)") do icacls "C:\\Inetpub\\vhosts\\example.com\\httpdocs" /grant %x
  2. Check if username exists in System:

    >net user | find /i "username"

    Add user username to system in case it is not present:

    >net user username Password:<password> /active:yes /expires:never /passwordchg:no /homedir:C/inetpub/example.com /add
Have more questions? Submit a request
Please sign in to leave a comment.