1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Question about Permissions

Discussion in 'Plesk for Linux - 8.x and Older' started by olddocks, Nov 26, 2007.

  1. olddocks

    olddocks Guest

    Last night i messed with permissions on my server and dont know what is the default permissions need to be set for


    - what should be the permissions for the folders above?
    - who should i set for owner and group ownership (i believe recursive)
    - I noticed the group or owner of some files is root? would this post a security risk?

    The reason i messed up with my folder i as i connect to FTP i couldnt write or rewrite the files in httpdocs folder.
  2. Blackbit@

    Blackbit@ Guest

    File/Folder privileges always as less as possible ;)

    /srv/www/vhosts/domain.com should be mode 755 for user and group root.

    For the httpdocs it should be restricted to the ftp_user of the domain and group psaserv (psa server/apache),
    and files below httpdocs/ should be owned by ftp-user and group psacln (psa client):
    e.g. /srv/www/vhosts/domain.com/
    e.g. /srv/www/vhost/domain.com/*
    Concerning your 3rd question, i say, just keep a minimum of privileges.
    I normally have less then those above. For example for /srv/www/vhosts/domain.com
    i use mode 750 - why should other users have privileges to access the directory,
    if only one has FTP? But those privs above are the defaults of plesk i think.