plesk repair fs doesn't set correct owner inside httpdocs

Follow

Comments

8 comments

  • Avatar
    Gergely Nagy

    @Alexandr

    Just had to use the script (i think for some cases it is better to use the script, instead of plesk repair) and found out, the script misses those files/folders inside  h.www_root if their name starts with a dot, or is does not restores the owner inside those folders. A small fix for me was to add an extra chown before doing the "psaserv restore" :

    chown -chR "${query[0]/ /}":psacln "${query[1]/ /}"/.[0-9a-zA-Z]*

    0
    Comment actions Permalink
  • Avatar
    Jerry van Kranenburg

    Do not run this script, it will break your complete plesk installation!

    There is missing a /httpdocs at the end of the chown!

    "chown -R $user.psacln $VHOST_DIR/$domain/httpdocs"

    Otherwise also all logfiles and httpdocs and httpsdocs folder will change and all sites are down.

    0
    Comment actions Permalink
  • Avatar
    Jason Schilling

    Doesn't correct dot files.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    @Lenor

    Hello!

    Step 3 of the resolution was updated. The correct command is:

    # chmod +x fix.sh

    0
    Comment actions Permalink
  • Avatar
    Alexander Tsmokalyuk

    @Jerry We have fixed the script. Thank you for reporting.

    0
    Comment actions Permalink
  • Avatar
    Artyom Baranov

    @Gergely Nagy

    Thank you for noticing it!
    The script was updated: now all chown and chmod commands are executed by `find`. It's a little bit slower but should behave better in edge cases.

    0
    Comment actions Permalink
  • Avatar
    Lenor

    can run your chown on Cloudlinux:

    Error: chown: ungültiger Benutzer: „+x“

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Jason, 

    Could you, please, provide used OS, Plesk version and give an example of a file name, which was ignored by script from workaround.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request