Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on domain directory ownership in the VPS & Dedicated forum
I've got a VPS using Plesk, and when I create a new domain Plesk creates a home folder for it in /var/www/vhosts/domainname. This directory is ...

  1. #1
    JPC Member
    Join Date
    Jul 2007
    Posts
    29

    Question domain directory ownership

    I've got a VPS using Plesk, and when I create a new domain Plesk creates a home folder for it in /var/www/vhosts/domainname. This directory is owned by the root user and group. Unfortunately, this means that any time I want to add a file to that directory (such as .bash_profile, etc), I need to do it via root or sudo. Is there a security issue with changing its ownership to the domain's SSH user? I want to make sure I'm not compromising my setup's security for some ease of use.

    Thanks,

    Josh

  2. #2
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    Hi Josh,

    Plesk developers swsoft says that folder permissions are set the way they are for security reasons, better not mess with it. You can try the 'private' folder in there for all files you need to be able to access via ftp, but not via web.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  3. #3
    JPC Member
    Join Date
    Jul 2007
    Posts
    29
    Quote Originally Posted by JPC-Veena View Post
    Hi Josh,

    Plesk developers swsoft says that folder permissions are set the way they are for security reasons, better not mess with it. You can try the 'private' folder in there for all files you need to be able to access via ftp, but not via web.
    I'm not worried about making files ftp-accessible while locking out web access, I'm more interested in preference files that are created when using various command-line tools via SSH.

    My question was, "Is there a security issue with changing its ownership to the domain's SSH user?" Granted, that is a yes/no question, but I'm more interested in the specific reason as to why the /var/www/vhosts/domainname folder's permissions shouldn't be owned by the domain owner, rather than root. Yes, I know it's slightly less secure than those files being owned by root, but that's the case for any file on the system. It's also a pain for my clients to have to ask me to do any tweaks to those directories because they don't have root access.

    It's very common when using shared hosting that the files in your area are owned by your user, not root. How is this different?

    Thanks,

    Josh

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Er...

    I *think* you guys are talking apples n' oranges.

    Joshb is talking 'owners' and Veena is talking 'permissions'...

    I don't consider these to be the same thing. Am I wrong about this?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    VinDSL, I meant to say ownership too
    Josh, every control panel has its limitations. If you want to know why it is made the way it is, you will need to ask swsoft, if you open a ticket, we could contact them and ask them about it for you too.

    It's very common when using shared hosting that the files in your area are owned by your user, not root. How is this different?

    Well, that would be the case on cPanel, but not on plesk or even on many other control panels which use a chroot environment.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

  6. #6
    JPC Member
    Join Date
    Jul 2007
    Posts
    29
    Quote Originally Posted by Vin DSL View Post
    Er...

    I *think* you guys are talking apples n' oranges.

    Joshb is talking 'owners' and Veena is talking 'permissions'...

    I don't consider these to be the same thing. Am I wrong about this?
    Agreed, this can be easy to mix up. To be clear, I am talking about *ownership*, while leaving the user/group/world permissions set as they were.

    Thanks for the note, Vin DSL.

  7. #7
    JPC Member
    Join Date
    Jul 2007
    Posts
    29
    Quote Originally Posted by JPC-Veena View Post
    VinDSL, I meant to say ownership too
    Josh, every control panel has its limitations. If you want to know why it is made the way it is, you will need to ask swsoft, if you open a ticket, we could contact them and ask them about it for you too.

    It's very common when using shared hosting that the files in your area are owned by your user, not root. How is this different?

    Well, that would be the case on cPanel, but not on plesk or even on many other control panels which use a chroot environment.
    OK, so it looks like this is partly a case of me being new to Plesk. Admittedly, all of my previous hosting experience has been with cPanel. I was hoping it was just some obvious security issue that I was missing/misunderstanding. This is something that I'm definitely interested in knowing, though, so I'll open up a support ticket on it.

    Thanks Veena,

    Josh

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •