[SOLVED] Cannot login to FTP (proftpd) with a single user on Debian Squeeze
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot login to FTP (proftpd) with a single user on Debian Squeeze
Hi everyone,
So I've been trying to get a single user to login to an FTP site I've created using proftpd and I haven't had much luck. So check this out: this only applies to one user, I can "su" to the user account so I know the password is set, and I am even able to SSH into the box as this user. This totally eliminates a bad/incorrect password and the server IS accepting connections on port 21 because I can FTP as other users. I've ruled out the client because I tried locally and using a command prompt from Winders but still no luck. This is what I'm seeing in the logs when I attempt to connect using an FTP client.
Jul 18 15:57:44 ctserver-2 proftpd: pam_unix(proftpd:session): session opened for user crownftp by (uid=0)
Jul 18 15:57:44 ctserver-2 proftpd: pam_unix(proftpd:session): session closed for user crownftp
Jul 18 15:57:44 ctserver-2 proftpd: pam_unix(proftpd:session): session opened for user crownftp by (uid=0)
Jul 18 15:57:44 ctserver-2 proftpd: pam_unix(proftpd:session): session closed for user crownftp
Normally, proftpd disallows root logins under any circumstance. If a client attempts to login as root, using the correct password, a special security message is sent to syslog. When the RootLogin directive is turned On, the root user may authenticate just as any other user could (assuming no other access control measures deny access); however the root login security message is still sysloged. Obviously, extreme care should be taken when using this directive.
The use of RootLogin in the Anonymous context is only valid when the User / Group defined in the Anonymous block is set to 'root'
Thank you for your reply, you pointed me in the right direction. The entry in my proftpd.conf has the default directory to point to ~/FTP which was owned by root, therefore causing the login to fail due to a permissions issue.
Edit: ok so I thought it was fixed by the problem persists. When I check the logs I'm noticing all the users have the uid=0 and some are able to login while others aren't. I even enabled RootLogin just for testing and it still didn't work. Suggestions?
Final edit: I did some more digging around and it looks like I was right in the first place, as it only applied to a certain user. As I mentioned before, I still noticed all the users are trying to login with the uid=0. What's that about?
Last edited by reverend_hh; 07-21-2011 at 12:10 PM.
Reason: not solved..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.