Problem with FTP - not allowing a specific user to log in

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
Hi All,

I have strange situation:

I have a user who is set to an administrator.

ftp 127.0.0.1
with user admin logs in fine.

ftp 127.0.0.1
with user my2ndadmin is refusing to allow to log in.
Error 530.

OK, sounds simple:

1. change password in DA and include the FTP option.
2. Try to log in.

Nope.
Same error msg.

I'm running proftpd 1.3.1 , so it is latest.
I tried to passwd my2ndadmin and hopefully tried it again.. with same failing results.

I tried to add an ftp user under that account.
Same error msg.

/etc/proftpd.passwd shows the user name there (just one entry of it - I checked to see if there is a double entry by accident - nope).

/usr/local/directadmin/data/users/my2ndadmin/ftp.passwd is empty.
-rw-r--r-- 1 root ftp 0 Nov 14 2007 ftp.passwd

I've restarted proftpd. stopped,. started it.
Even did a rebuild of it.
Same result!

Any pointers?

thanks,

-Alon.

EDIT:
====

This is a shared IP hosting.
Not a dedicated IP account.




EDIT AGAIN:
=========

[RESOLVED]

I removed the line of entry in the /etc/proftpd.passwd of the specific user and then passwd the user.
Now the weired thing is:

A new user to the proftpd.passwd was not added, but somehow the password is kept somewhere!
So,. it is resolved, but now it is confusing as to how it is working.

Again, resolevd, but with question marks?!?

-Alon
 
Last edited:
/etc/proftpd.passwd is for virtual users only. Normal unix users are allowed access through /etc/passwd

A virtual user is like [email protected] unlike just username

If you added users in da for ftp make sure you login like [email protected]


Hmmm.
Well with that logic I should NOT see any users in proftpd.passwd that are part of the DA account creation.
Is that correct?
The primary FTP account say of user: /home/admin2 should not appear in the /etc/proftpd.passwd, but should only show up in /etc/passwd.
Am I correct about this?

But, when I create a new account in DA, it adds a line in /etc/proftpd.passwd with the user's name.

So this is conflicting or am I confused?

Thanks,

-Alon.
 
Well I guess /etc/proftpd.passwd is used to authenticate you if you have AuthUserFile /etc/proftpd.passwd

set in your /etc/proftpd.conf

Did you add your 2nd admin as an administrator in directadmin? Using the passwd command will only reset the passwd in /etc/passwd use directadmin password reset.

Check the log files.
 
Well,. I don't remember which one of my servers had the previous issue, but I found a similar problem with a new server:

Only user Admin was able to log in, others - not.

I asked DA support for assistance with this.

Johh helped me to resolve the issue:

Someone (not sure who, but probabaly someone with root access - there are 3 admins with root access to this server) modified the /etc/proftpd.conf file:

RequireValidShell on <---- INCORRRECT

RequireValidShell no <----- correct.

That was the source of the problem.
Only users who had SSH access enabled were able to log in.
Others, with no SSH,. had no access.

Hope that helps someone else down the road.

-Alon.
 
Back
Top