1832928 Members
2711 Online
110048 Solutions
New Discussion

FTP Error

 
SOLVED
Go to solution
Wamaitha
Frequent Advisor

FTP Error

Hello,
i have users who are trying to ftp files to a HP-UX file server. and the get the following error:
Password:
530 Login incorrect
Login failed.
ftp>
what can i do to resolve this issue? i do not have ftpusers file. Do i need to start with the creating the ftpusers file? Any info will be appreciated. Still feeling my way around HP-UX. thanks in advnace.
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: FTP Error

Shalom,

You need an ftpusers file to block root ftp access anywya, so go for it.

You should make sure the users involved have not let their passwords expire.

Check /var/adm/syslog/syslog.log for more data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jonathan Fife
Honored Contributor

Re: FTP Error

Hi Wamaitha,

That error means the users aren't putting in a valid username and/or password. Can you su to the user they are entering if you are logged into the file server? If you 'grep /etc/passwd', does a line show up? Is the shell (the last column) on that line a valid shell?

eg:

% grep youruser /etc/passwd
youruser::107:20:Your User:/home/youruser:/usr/bin/ksh
% ls -l /usr/bin/ksh
-r-xr-xr-x 2 bin bin 172032 Apr 22 2002 /usr/bin/ksh

Is there anything toward the bottom of /var/adm/syslog/syslog.log that shows an ftp or login-related error?

Jonathan
Decay is inherent in all compounded things. Strive on with diligence
Sundar_7
Honored Contributor

Re: FTP Error

I can think of /etc/shells file but in that case, I dont believe users will not be prompted to enter the password.

Check for the /etc/shells file. If it is empty then delete it or add all the login shells in the file.

Which version of HP-UX are running ? I believe with 11.11, the location of ftpusers file is in /etc/ftpd/ directory, not /etc as with 11.0

Also check to see if you have a ftpaccess file in the /etc/ftpd directory.
Learn What to do ,How to do and more importantly When to do ?
Wamaitha
Frequent Advisor

Re: FTP Error

Steven, looked at the log and all i see in the syslog is 'ftp session closed' with the ftpuser file, any special permission on it?

Jonathan when i do an su and enter the password i get 'su sorry' but when i keyin whoami... it is the user who su.

thanks in advance
Wamaitha
Frequent Advisor

Re: FTP Error

Sundar, i checked the /etc/shells fine and it was there. I added the location for the sh that the user with the the issue was having and they still were not able to login.
Thank you
Jonathan Fife
Honored Contributor

Re: FTP Error

Did you try looking at the shell for that user in /etc/passwd and seeing if that shell exists in /etc/shells?

Can you 'ftp localhost', try to log in as the user, then quit and do a 'tail /var/adm/syslog/syslog.log' and post the results?
Decay is inherent in all compounded things. Strive on with diligence