The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with FTP users

Discussion in 'General Discussion' started by nobita, Feb 5, 2008.

  1. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I own a dedicated server and use WHM and Cpanel 11. It is well known that Cpanel automatically create an FTP user with @domain including in the username. It causes some problems. There are many questions about this issue in this forum, and the answer is 'Impossible", except that the user is a system's user.

    Because the PureFTPD is installed to work with Cpanel, I think about creating virtual FTP users. With root, we can create manually FTP users by editing the PureFTPD configuration file. In this case, we can have FTP users without @domain in the username.

    I tried to create virtual users following the document at
    http://download.pureftpd.org/pub/pure-ftpd/doc/README.Virtual-Users

    However, if the virtual users can work, the users created from Cpanel does not work, and vise versa. Could anybody guide me how to create virtual FTP users working together with existing FTP users created from Cpanel? Or is my idea possible?
     
  2. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Tens of views but no answer :(
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I'm not following what your actual issue is.

    What specific task are you trying to accomplish?
     
  4. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ok, I will give you an example.

    My server's IP is: 20.20.20.20
    Access to WHM: http://20.20.20.20:2086
    The server handles one domain: mydomain.com
    Access to Cpanel for the domain: http://mydomain.com:2082
    User: one_user
    Password: any_password
    So, in the system, there are 2 users: root and one_user.

    There is a folder named folder4upload in /home/one_user/public_html/
    Therefore, the files in that folder can be accessed by browser (IE, FF, Opera, etc.) through two URLs:
    http://mydomain.com/folder4upload/
    or ftp://one_user:any_password@mydomain.com/public_html/folder4upload/

    The problem is that I want to make another way to access that folder:
    ftp://ftp_user:ftp_password@mydomain.com/folder4upload/

    How to create the user ftp_user (there is no '@' character in the username)? Cpanel cannot (because it can create only FTP user like ftp_user@mydomain.com). I see that PureFTPD was installed in my server, so I think that there is a way to create that user by PureFTPD directly, not through Cpanel. Is it possible?

    Note that the user ftp_user has only FTP priviledge.
     
    #4 nobita, Feb 11, 2008
    Last edited: Feb 11, 2008
  5. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You really need to use a real FTP client such as FileZilla. If you are trying to use Internet Explorer as an FTP client then you are using IE for something it is not intended to be used for.

    Internet Explorer is a web browser first and foremost. It does contain enough code to function as a very simple FTP client, but it does not offer all of the features that a real FTP client would offer.

    If you use a real FTP client, like FileZilla, then it will handle the login information correctly and you will be able to upload files with this FTP client.

    You can't create an additional FTP sub user on an account without use the @ symbol.

    Imagine a situation where there are two domains on a server:

    domain1.com - username: user1
    domain2.com - username: user2


    domain1.com logs into their control panel and creates a sub FTP user, joe.

    domain2.com logs into their control panel and creates a sub FTP user, joe.

    Now if the @domain.com part was not required, how would the server know which user is trying to log in?

    domain1.com logs into FTP as the user joe. Is the the joe user for domain1.com or the joe user for domain2.com?

    FTP does not have a host identify part that HTTP does. With HTTP 1.1, a browser or client has to send a Host: domain.com part in the header. This allows HTTP to be shared over a single IP. FTP doesn't have this functionality. When you log into an FTP server, it doesn't matter if you are logging in an FTP server name of domain1.com or as domain2.com, if they both resolve to the same IP, the FTP server isn't going to be able to tell the difference.

    You might (and I stress might) be able to accomplish what you are after if one of the domains is using a dedicated IP. Though I don't think this is part of the cPanel default configuration. You would likely have to write up your own FTP configuration, and I don't know if that will be overwritten by cPanel or not. The best solution, and from cPanel's point of view to keep things symmetrical, is to use a real FTP client like FileZilla, that will handle an FTP username of joe@domain1.com properly and then you won't have this problem.
     
  6. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Thank you very much for your reply. As you see, I do know why Cpanel adds the @domain to the username of the FTP user. However, I have a reason for a demand of an FTP user whose username does not contain @domain. The question here is "how to do". My server host only one domain, so I need that joe user. I might install a new FTP server software, but due to the existance of PureFTPD, I would like to use it without installing another FTP server. If you don't mind, please guide me how to do.
     
  7. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Today I try to install proftpd in order to create FTP user by myself. However, it cannot be installed because it conflicts with pureftpd :(
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You can use ProFTPd by going to WHM -> Service Configuration -> FTP Configuration and clicking Switch to ProFTPd
     
  9. nobita

    nobita Member

    Joined:
    Feb 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I read an article explaining about the way Cpanel manage the FTP server yesterday. From that article, I see that there is no way to do as I want.

    I am considering a change to Virtual Admin or Plesk.
     
Loading...

Share This Page