530 login incorrect accessing FTP server

Posted on 2008-11-11
Last Modified: 2013-12-21
Remote users cannot access the Solaris 8 FTP server.   In FileZilla client they see
< 220 blade150 FTP server (SunOS 5.8) ready
> USER xyz
< 331 Password required for xyz.
> PASS (hidden)
< 530 Login incorrect
530 Login incorrect
Connection closed.

I already checked the following:
a) there is a /etc/ftpusers file and it does not contain user xyz
b) in /etc/inetd.conf there is a line
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
c) there is /usr/sbin/in.ftpd file
d) user xyz can ssh into the server

Question by:FKoutchouk
    LVL 40

    Expert Comment

    it could be that there is a firewall resetting the session.

    Can you try from the server it self to

    ftp 0

    and see if user can login and transfer files
    LVL 22

    Expert Comment

    The session isn't being reset, the session authentication is failing. Do you know what the password
    for the user is? Have you tried doing the login manually instead of via filezilla? You said you used ssh to login, is that with keys or giving the password? Also, check the /etc/pam.conf file for problems.
    LVL 1

    Author Comment

    omarfarid:  ftp 0 fails for two users that I have passwords for.  After entering the password I get
    530 Login incorrect

    blu: yes I know the passwords.  ssh is with a password (same one).  There is no "ftp" string in /etc/pam.conf

    Additional:  the server is only accessed from a local network (or VPN), so I do not need complicated security.  Username/password is enough.   So any solution that will permit that is ok with me!
    LVL 22

    Accepted Solution

    Did you try making the FTP connection without filezilla?

    Okay, two ideas spring to mind. First, SSH does not come with Solaris 8, so it seems likely that it might very well be authenticating in a manner different form FTP. In the pam.conf file, ftp usually uses the "other" lines. Is you pam.conf modified in any way?

    Another idea is that the ftp daemon might be set up to do a chroot call and the chroot environment is not set up correctly.

    A sure fire method to figure out what is happening is to use truss on the inetd daemon just as you try to login with FTP. The problem with this is that you get a lot of data and there is no easy way to tell you how to interpret it.

    So, on the server, log in as root. Find the pid of the inetd process and then run this command

    truss -faled -o /tmp/inet.truss -p pidofinetd

    Then immediately after starting this command, try to login with FTP from another system. As soon as you get the login incorrect message, use control c on the truss command.
    LVL 1

    Author Closing Comment

    I rebooted my system... and restored my pam.conf.

    Featured Post

    Do email signature updates give you a headache?

    Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

    Join & Write a Comment

    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now