SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Thread: Share Hosting

  1. #1
    Non-Member
    Join Date
    Mar 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Share Hosting

    I wish to share my hosting, if I make a FTP account specific for a directory, user will access only that directory or he can hack/access something from main directory (mysql/directories etc)

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That person could easily upload a page (PHP, perl, any language the web server will run) which gives complete access to all the files in the hosting account in all directories.

  3. #3
    Non-Member
    Join Date
    Mar 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can I bound him on a specific directory

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Do you have root access to this server?

  5. #5
    Non-Member
    Join Date
    Mar 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes

  6. #6
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Create a new user (not just an FTP account, an actual system user) for this other person and make sure the permissions on all directories other than this user's hosting directory don't allow him access at the file system level.

  7. #7
    Non-Member
    Join Date
    Mar 2009
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks

  8. #8
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are on any cpanel server, adding a additional FTP user will give him access only to the folder you specify.
    ------------
    hzSari | HostingZoom.com
    ModVPS.com | ResellerZoom.com
    Power Speed Reliability

  9. #9
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,784
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by SariJ View Post
    If you are on any cpanel server, adding a additional FTP user will give him access only to the folder you specify.
    Into which they can upload a script that gives them access to all the other folders that he wants to access as has already been said. Why repeat something that has already been demonstrated to be incorrect.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •