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.

Proftpd virtual user problems

Discussion in 'General Discussion' started by p, Dec 5, 2002.

  1. p

    p Registered

    Joined:
    Nov 15, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I was wondering if anyone has had problems with proftpd when using virtual FTP accounts.

    When I add an ftp account under one of the domains it doesnt seem to work.

    from /var/log/auth.log

    Dec 5 15:44:09 serv1 Cp-Wrap[70917]: Pushing &1007 ADD jtittle **hidden forsecurity** jtittle & to '/usr/local/cpanel/bin/ftpadmin' for UID: 1007
    Dec 5 15:44:09 serv1 Cp-Wrap[70917]: CP-Wrapper terminated without error
    Dec 5 15:44:12 serv1 Cp-Wrap[70937]: CP-Wrapper v1.2 resuming normal operations
    Dec 5 15:44:12 serv1 Cp-Wrap[70937]: Pushing &1007 LIST 0 0& to '/usr/local/cpanel/bin/ftpadmin' for UID: 1007
    Dec 5 15:44:12 serv1 Cp-Wrap[70937]: CP-Wrapper terminated without error
    Dec 5 15:44:32 serv1 proftpd[70944]: serv1.domain.com (localhost[127.0.0.1]) - USER jtittle@domain.org: no such user found from localhost [127.0.0.1] to 127.0.0.1:21

    I also tried just user withouth the domain appended.

    Dec 5 15:47:16 serv1 proftpd[71197]: serv1.domain.com (localhost[127.0.0.1]) - USER jtittle: no such user found from localhost [127.0.0.1] to 127.0.0.1:21

    Here is teh account in /etc/proftpd/passwd.vhosts

    jtittle@domain.org:53hriRpz4***:1007:1007:undef:/usr/home/pornstar/public_html/jtittle:/bin/bash

    It should be noted that every regular user account on the server works fine, just not the virtual ones.

    My proftpd.conf and all variations of this have always been 0 bytes. Nothing in them. I assume this is the reason why it doesnt work, but then again it works for regular user acccounts like I said. So I dont know. I am not familiar with proftpd vary much but am learning.
     
  2. semaj

    semaj Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    My virtual accounts are not working as well.......I hope we can get an answer to this soon.
    James
     
  3. semaj

    semaj Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Got the solution for it.

    the username of a subdomain ftp user is username@domain.com

    ftp domain.com
    username: user@domain.com
    password: password

    Works fine on my server.

    James
     
  4. rcthost

    rcthost Active Member

    Joined:
    Sep 16, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Not working for me. Using username@domain.com and fails to login.
     
  5. rweiss

    rweiss Well-Known Member
    PartnerNOC

    Joined:
    Aug 31, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Any fix for this?

    I've imported accounts from one CPanel server to another... and I'm getting this very problem.

    Thanks,
    Russ
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Have you tried synchronizing passwords in WHM?
     
  7. rweiss

    rweiss Well-Known Member
    PartnerNOC

    Joined:
    Aug 31, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Yes, and for some reason that actually made proftpd hang after I'd enter the username (and would be waiting for a password prompt).

    I then had to completely kill proftpd (for some reason restarts didn't work) and could once again login as main users...

    But sub accounts (user@domain.com) still aren't working.

    Any clues?

    Thanks,
    Russ
     
  8. rweiss

    rweiss Well-Known Member
    PartnerNOC

    Joined:
    Aug 31, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Actually it only happens on some accounts... and the weird thing is that file permissions on the account files in /etc/proftpd are the same (between working and non-working accounts).

    -Russ
     
  9. X-Istencedotcom

    X-Istencedotcom Well-Known Member

    Joined:
    Apr 14, 2003
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    proftpd.conf:

    Code:
    #
    DisplayConnect /etc/issue.net
    # To have more informations about Proftpd configuration
    # look at : [url]http://www.proftpd.org/[/url]
    #
    # This is a basic ProFTPD configuration file (rename it to 
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.
    
    UseReverseDNS off
    ServerName                      "ProFTPD Yourhosting.com"
    AuthUserFile /etc/proftpd/passwd.vhosts
    LogFormat BytesLog "%b"
    ServerType                      standalone
    DefaultServer                   on
    
    # Port 21 is the standard FTP port.
    AuthPAM off
    Port                            21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                           022
    
    # To prevent DoS attacks, set the maximum number of child processes
    # to 30.  If you need to allow more than 30 concurrent connections
    # at once, simply increase this value.  Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances                    30
    
    # Set the user and group that the server normally runs at.
    User                            nobody
    Group proftpd
    
    # Normally, we want files to be overwriteable.
    <Directory /*>
      AllowOverwrite                on
    </Directory>
    
    #########################################################################
    #                                                                       #
    # Uncomment lines with only one # to allow basic anonymous access       #
    #                                                                       #
    #########################################################################
    ### A basic anonymous configuration, no upload directories.
    # <Anonymous ~ftp>
    #  User                         ftp
    #  Group                        ftp
      ### We want clients to be able to login with "anonymous" as well as "ftp"
      # UserAlias                   anonymous ftp
    
      ### Limit the maximum number of anonymous logins
      # MaxClients                  10
    
      ### It is wise when making an 'ftp' user that you either block its
      ### ability to login either via /etc/login.access or my giving it
      ### an invalid shell.
      ### Uncomment this if the 'ftp' user you made has an invalid shell
    
      # RequireValidShell          off
    
      ### We want 'welcome.msg' displayed at login, and '.message' displayed
      ### in each newly chdired directory.
      # DisplayLogin                        welcome.msg
      # DisplayFirstChdir           .message
    
      ### Limit WRITE everywhere in the anonymous chroot
      # <Limit WRITE>
      #  DenyAll
      # </Limit>
    
    # </Anonymous>
    
    DefaultRoot ~ !wheel
    The virtual FTP accounts are located in /etc/proftpd/<account name>

    Account name: the account name for the domain owner under which the virtual users is being placed.
     
  10. rweiss

    rweiss Well-Known Member
    PartnerNOC

    Joined:
    Aug 31, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Thanks...

    Actually Dave from DarkORB got it working a little earlier today. He said he resynced / restarted proftpd... which I also did.

    Very strange. I'll be keeping an eye on this. Hopefully it won't pop up again.

    Thanks again,
    Russell
     
  11. omenix

    omenix Active Member

    Joined:
    Aug 24, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    /dev/null
    How do I create a ftp account and append the domain name?

    eg. user@domain.com instead of using only the username
     
  12. kavithav1

    kavithav1 Registered

    Joined:
    Jan 22, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Login Cpanel -> FTP Manager ->FTP accounts -> Add FTP Account
     
  13. cmdickey

    cmdickey Member

    Joined:
    Sep 28, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    *BUMP*

    I have followed all your instructions, yet my virtual users still cannot log on. I check all the proftp user files/password files and everything is formatted correctly. What's the deal?
     
  14. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Please don't cross-post on the forums.
     
Loading...

Share This Page