Proftpd - can't login to unix shell account

rutekp

Verified User
Joined
May 29, 2007
Messages
20
After new installation i can't login to normal account(/etc/passwd) over proftpd.
My debug information:


host.domain.com -
host.domain.com - Config for ProFTPd:
host.domain.com - PassivePorts
host.domain.com - TimesGMT
host.domain.com - TimeoutLogin
host.domain.com - TimeoutIdle
host.domain.com - TimeoutNoTransfer
host.domain.com - TimeoutStalled
host.domain.com - TransferLog
host.domain.com - ExtendedLog
host.domain.com - AuthUserFile
host.domain.com - DefaultServer
host.domain.com - AuthOrder
host.domain.com - DeferWelcome
host.domain.com - RequireValidShell
host.domain.com - DefaultRoot
host.domain.com - DirFakeUser
host.domain.com - DirFakeGroup
host.domain.com - UserID
host.domain.com - UserName
host.domain.com - GroupID
host.domain.com - GroupName
host.domain.com - AllowStoreRestart
host.domain.com - AllowRetrieveRestart
host.domain.com - ListOptions
host.domain.com - Umask
host.domain.com - DisplayLogin
host.domain.com - DisplayChdir
host.domain.com - AllowOverwrite
host.domain.com - IdentLookups
host.domain.com - ExtendedLog
host.domain.com - ExtendedLog
host.domain.com - ROOT PRIVS at mod_delay.c:307
host.domain.com - RELINQUISH PRIVS at mod_delay.c:309
host.domain.com - retrieved group ID: 50
host.domain.com - setting group ID: 50
host.domain.com - SETUP PRIVS at main.c:2849
host.domain.com - ROOT PRIVS at main.c:1926
host.domain.com - RELINQUISH PRIVS at main.c:1933
host.domain.com - ROOT PRIVS at main.c:2257
host.domain.com - opening scoreboard '/var/run/proftpd/proftpd.pid'
host.domain.com - RELINQUISH PRIVS at main.c:2283
host.domain.com - ROOT PRIVS at inet.c:343
host.domain.com - RELINQUISH PRIVS at inet.c:406
host.domain.com - ProFTPD 1.3.1 (stable) (built Mon Dec 3 11:54:25 MST 2007) standalone mode STARTUP
host.domain.com - ROOT PRIVS at pidfile.c:42
host.domain.com - RELINQUISH PRIVS at pidfile.c:44
host.domain.com - ROOT PRIVS at main.c:1054
host.domain.com - RELINQUISH PRIVS at main.c:1058
host.domain.com - no matching vhost found for 127.0.0.1#21, using DefaultServer 'ProFTPd'
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at main.c:903
host.domain.com (127.0.0.1[127.0.0.1]) - SETUP PRIVS at main.c:908
host.domain.com (127.0.0.1[127.0.0.1]) - FTP session requested from unknown class
host.domain.com (127.0.0.1[127.0.0.1]) - performing module session initializations
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at mod_delay.c:1232
host.domain.com (127.0.0.1[127.0.0.1]) - RELINQUISH PRIVS at mod_delay.c:1234
host.domain.com (127.0.0.1[127.0.0.1]) - mod_log: opening ExtendedLog '/var/log/proftpd/auth.log'
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at mod_log.c:1218
host.domain.com (127.0.0.1[127.0.0.1]) - RELINQUISH PRIVS at mod_log.c:1220
host.domain.com (127.0.0.1[127.0.0.1]) - mod_log: opening ExtendedLog '/var/log/proftpd/access.log'
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at mod_log.c:1218
host.domain.com (127.0.0.1[127.0.0.1]) - RELINQUISH PRIVS at mod_log.c:1220
host.domain.com (127.0.0.1[127.0.0.1]) - mod_log: opening ExtendedLog '/var/log/proftpd/193.17.224.34.bytes'
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at mod_log.c:1218
host.domain.com (127.0.0.1[127.0.0.1]) - RELINQUISH PRIVS at mod_log.c:1220
host.domain.com (127.0.0.1[127.0.0.1]) - ROOT PRIVS at mod_auth.c:151
host.domain.com (127.0.0.1[127.0.0.1]) - opening scoreboard '/var/run/proftpd/proftpd.pid'
host.domain.com (127.0.0.1[127.0.0.1]) - RELINQUISH PRIVS at mod_auth.c:153
host.domain.com (127.0.0.1[127.0.0.1]) - AuthOrder in effect, resetting auth module order
host.domain.com (127.0.0.1[127.0.0.1]) - ident lookup disabled
host.domain.com (127.0.0.1[127.0.0.1]) - connected - local : 127.0.0.1:21
host.domain.com (127.0.0.1[127.0.0.1]) - connected - remote : 127.0.0.1:39151
host.domain.com (127.0.0.1[127.0.0.1]) - FTP session opened.
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'USER rutekp' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'USER rutekp' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'USER rutekp' to mod_delay
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'USER rutekp' to mod_auth
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching CMD command 'USER rutekp' to mod_ratio
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching CMD command 'USER rutekp' to mod_auth
host.domain.com (127.0.0.1[127.0.0.1]) - mod_auth_file/0.8.3: using passwd file '/etc/proftpd.passwd'
host.domain.com (127.0.0.1[127.0.0.1]) - no supplemental groups found for user 'rutekp'
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching POST_CMD command 'USER rutekp' to mod_delay
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD command 'USER rutekp' to mod_log
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
host.domain.com (127.0.0.1[127.0.0.1]) - mod_auth_file/0.8.3: using passwd file '/etc/proftpd.passwd'
host.domain.com (127.0.0.1[127.0.0.1]) - no supplemental groups found for user 'rutekp'
host.domain.com (127.0.0.1[127.0.0.1]) - no such user 'rutekp'
host.domain.com (127.0.0.1[127.0.0.1]) - USER rutekp: no such user found from 127.0.0.1 [127.0.0.1] to 127.0.0.1:21
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'SYST' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching CMD command 'SYST' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD command 'SYST' to mod_log
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'QUIT' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching PRE_CMD command 'QUIT' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching CMD command 'QUIT' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD command 'QUIT' to mod_log
host.domain.com (127.0.0.1[127.0.0.1]) - dispatching LOG_CMD command 'QUIT' to mod_core
host.domain.com (127.0.0.1[127.0.0.1]) - FTP session closed.
host.domain.com - ProFTPD terminating (signal 2)
host.domain.com - ROOT PRIVS at main.c:1789
host.domain.com - ROOT PRIVS at mod_delay.c:1095
host.domain.com - RELINQUISH PRIVS at mod_delay.c:1097
host.domain.com - RELINQUISH PRIVS at main.c:1811
 
Last edited:
cd /usr/local/directadmin/custombuild
./build update
./build proftpd d
 
hi scsi,

ive just installed a new box and im having the same probelm, each user i create via ssh cannot log via ftp but work with ssh.

Ive tryed to reinstall proftpd but problem keep stay, any suggestion about enable ftp login for users created via shell?

Ive notice that proftpd.conf check just /etc/proftpd.passwd and not /etc/paswd so prolly that is the problem, but, i dont know if is just necessary add the auth file for /etc/passwd or something else.

Any suggestion?

Regards
 
Are the users listed in /etc/proftpd.passwd. Im sure that all users are supposed to be listed in there unless they are virtual ftp users.

There should be a line in your /etc/proftpd.conf with:

AuthUserFile /etc/proftpd.passwd

When this line is listed it overrides the default of /etc/passwd for authentication. Just make sure that all your users are listed in /etc/proftpd.passwd.

If they are and it still is not working then you may have to check your proftpd log file or put proftpd into debug mode to find out what is going on.
 
thats is the point, user added by adduser USERNAME go into /etc/passwd and not in /etc/proftpd.passwd so proftpd dont let them login
 
ive just checked another server with debian aswell and there too user created via shell dont go in /etc/proftpd.passwd but just in /etc/passwd but in that server i can log into ftp with user created via shell
 
I seem to be having exactly the opposite problem; nothing is ever written to /etc/proftpd.conf. So virtual ftp accounts don't work.

:(

Jeff
 
Virtual stuff should be in /etc/proftpd.vhosts.conf

Then /etc/proftpd.conf should just have this line in it at the bottom:

Code:
Include /etc/proftpd.vhosts.conf
 
John wrote me and told me the error of my ways; I'm sorry I didn't update the forum.

Thanks, Guys!

Jeff
 
Hi SeLLeRoNe,

Did you get any answer from DirectAdmin? I got the same problem. Want to add users through SSH for Admin backups.

Please let me know.

Regards,

Dennis
 
Hi Dennis,

i dont remember how did fix, passed a lot of time... but if you want i can check your box

Let me know on pm.

regards
 
now im having same problem on a new box with centos 5.5 64bit.

the link in last post just moved some user account that was in /etc/passwd into /etc/proftpd.passwd but still the "only unix shell account, no da account" aren't working...

My fault i didnt wrote how i solved last time here...
 
I always comment out this line "AuthOrder mod_auth_file.c". It always causes problems for me.
 
Back
Top