How to recreate system users for Plesk for Windows?

Created:

2017-05-29 15:29:08 UTC

Modified:

2017-08-16 16:17:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to recreate system users for Plesk for Windows?

Applicable to:

  • Plesk for Windows

Symptoms

Plesk is inoperable and websites are down. There are a lot of local system user missing in  How to recreate system users for Plesk for Windows?

Cause

Unknown

Resolution

  1. Open Local Users and Groups snap-in by executing the following command in command prompt:

    lusrmgr.msc
    
  2. Re-create Plesk Administrator user. It must be a member of Administrators group

  3. Re-create Parallels Panel users group
  4. Run Plesk Reconfigurator > Repair Plesk installation tool and check options Plesk Server Accounts, Plesk Services
  5. In Local Users and Groups snap-in create IUSRPLESK_sqladmin user and repair MSSQL Webadmin:

    "%plesk_cli%/repair" --reconfigure-mssql-webadmin-site
    
    "%plesk_cli%/repair" --update-mssql-users-permissions
  6. Re-create Plesk system users as follows:

    "%plesk_bin%\dbclient.exe" --direct-sql --sql="SELECT displayName FROM domains" > domains.txt 
    
    for /f "skip=1" %i in (domains.txt) do "%plesk_dir%\bin\repair.exe" --reconfigure-web-site -web-site-name %i
    "%plesk_dir%\bin\repair.exe" --synchronize-protected-directories-storage
    "%plesk_dir%\bin\repair.exe" --repair-all-webspaces-security
    "%plesk_dir%\bin\repair.exe" --synchronize-impersonation-storage
    "%plesk_dir%\bin\repair.exe" --synchronize-protected-directories-storage
    for /f "tokens=*" %d in ('type C:\domains.txt') do repair.exe --repair-webspace-security -webspace-name %d
  7. Re-create FTP users as follows:

    "%plesk_dir%\bin\repair.exe" --reconfigure-ftp-sites
    

    execution can fail with the following error:

    C:\Program Files (x86)\Plesk\MySQL\bin>"%plesk_dir%\bin\repair.exe" --reconfigure-ftp-sites
    
    ftpmng failed: No mapping between account names and security IDs was done. (Error code 1332) at LookupAccountName
    at (VSID::findAccount line 141)
    at getFileAccessGroup(C:\Inetpub\vhosts\Servers\6)(IIsFtp7ServerAdapter::getFileAccessGroup line 472)
    A member could not be added to or removed from the local group because the member does not exist. (Error code 1387) at NetLocalGroupAddMembers(MSFTP7_027875036, MSFTP7_018471498)
    at (VSID::addGroupMember line 597) at configUser(10.39.91.116, domain1,
    C:\Inetpub\vhosts\domain1.tld)(IIsFtp7ServerAdapter::configUser line 423)
    at reconfFtpUser(domain1)(FtpServerManager::reconfFtpUser line 483)
    at updateUsers()(FtpServerManager::updateUsers line 171)
    at execute console command --update-users(vconsoleapp::start line 122)
    at execute "C:\Program Files (x86)\Plesk\admin\bin64\ftpmng.exe" --update-users "--config=tmp7675.tmp" --soft(vconsoleapp::run line 139)
    (Error code 1)

    In that case create group specified in the error in Local Users and Groups , e.g. MSFTP7_027875036 in that example and re-run repair tool once again

  8. If Plesk FileSharing feature is installed, check that IWAM_FILESHARING user exists in Local Users and Groups and creat it if not. Update username for file access in Home > Tools & Settings > File Sharing Settings , specify **Username for file access ** and update the password, then click OK.

  9. If webmail is being used, check that related IIS user exists and create it if not:

    IUSRPLESK_atmail    - for ATMail
    
    IUSRPLESK_horde - for Horde
    IUSRPLESK_smwebmail - for SmarterMail
Have more questions? Submit a request
Please sign in to leave a comment.