Proftpd virtual user problems

p

Registered
Nov 15, 2002
3
0
151
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 [email protected]: 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

[email protected]: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.
 

semaj

Well-Known Member
Nov 27, 2002
61
0
156
My virtual accounts are not working as well.......I hope we can get an answer to this soon.
James
 

rweiss

Well-Known Member
Aug 31, 2002
49
0
156
Any fix for this?

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

Thanks,
Russ
 

rweiss

Well-Known Member
Aug 31, 2002
49
0
156
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 ([email protected]) still aren't working.

Any clues?

Thanks,
Russ
 

rweiss

Well-Known Member
Aug 31, 2002
49
0
156
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
 

X-Istencedotcom

Well-Known Member
Apr 14, 2003
223
0
166
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.
 

rweiss

Well-Known Member
Aug 31, 2002
49
0
156
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
 

cmdickey

Member
Sep 28, 2006
7
0
151
*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?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
*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?
Please don't cross-post on the forums.