Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    19

    Default Changing FTP home directory

    I'm trying to set up a site using cpanel, and I would like to change the user's FTP home directory to something other than the default. Currently, I have set up a new account for this site, and as expected, when the user logs in via FTP, he/she is brought to:

    Code:
    /home/username/
    I would like to modify this one site (note I do not want to change all the sites on my system) so that when the user logs in via FTP, he/she has an FTP home directory of:

    Code:
    /home/username/public_html/dev/
    This way, I can ensure that all the files uploaded to this directory are going to the right directory. Is there a file or database that contains this information? Can I make the change through WHM or Cpanel, or is it something I must do manually?

    Any advice is greatly appreciated.

  2. #2
    Member
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    217

    Default

    With cpanel interface, you can create many ftp accounts, which creates home folder for that user in the /home/username/public_html/ftpusername

    hope thats what you are asking
    Affordable Linux Server Managament Solution
    http://www.linuxnetworkcare.com/services/cpanel.php
    [ Phone: 647-722-5303 MSN : sutha@linuxnetworkcare.com AIM : xerophytev skype:ksutha5]

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    19

    Default

    Not really what I'm looking for. I know that I can create accounts like that, but I'm hoping there's a way to change the default FTP home directory for a user. Essentially, I do not want the user to have access to anything above public_html/dev/

    There doesn't seem to be anything in WHM or Cpanel to handle this.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2003
    Location
    moscow
    Posts
    294

    Default

    you can correct this by userdmod -d /home/username/public_html/dev username
    or just by editing /etc/passwd
    but you need to think about how cpanel will work with this setting in future.
    https://robobill.net
    US dedicated, Europe and Asia and Russia dedicated server. Shared, Reseller, VPS hosting in US and Europe.
    We are RESELLER of dedicated servers since 2002.

Similar Threads & Tags
Similar threads

  1. Replies: 14
    Last Post: 05-26-2011, 10:08 AM
  2. Change default FTP home directory for users
    By dagurk in forum New User Questions
    Replies: 2
    Last Post: 06-12-2008, 03:39 PM
  3. Changing Home Directory
    By hotsos in forum New User Questions
    Replies: 3
    Last Post: 07-28-2006, 11:28 PM
  4. Need FTP Access to /Home Directory
    By urantian in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-20-2005, 09:30 PM
  5. changing home directory for specific accounts
    By junkiesnetwork in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-06-2005, 03:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube