HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Login fails

 
Qcheck
Super Advisor

FTP Login fails

Hi All,

I am trying to ftp as prodctrl account and login is keep failing. We are using proftp-1.2.10-9.2.el4.rf

I could able to ftp as myself but not with prodctrl account.
My account is an NIS account and prodctrl is local account. Do I need to change any config file in order to enable ftp for local accounts??

Does any one has any idea???

Thanks and waiting for ur reply and it is urgent..
7 REPLIES
Srimalik
Valued Contributor

Re: FTP Login fails

check /etc/shells

it should have the entry for the shell corresponding to the local user.

the shell of the user can be found from /etc/passwd file.

if the shell for the user in /etc/passwd is /sbin/sh than add this path in /etc/shells also.

best of luck
abandon all hope, ye who enter here..
Steven E. Protter
Exalted Contributor

Re: FTP Login fails

Shalom,

Clarification.

If /etc/shells does not have an entry for the shell field in /etc/passwd this can lead to the problem you are experiencing.

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
Qcheck
Super Advisor

Re: FTP Login fails

Prodctrl has /bin/bash and it is in /etc/shells...any more ideas???
Padma Asrani
Honored Contributor

Re: FTP Login fails

Hi

Check if the id is in ftcusers file under /etc/ directory because if the id is there then you can't login using Prodctrl id

Regards
Padma
Qcheck
Super Advisor

Re: FTP Login fails

Hi Padma,

No! Prodctrl id is not in /etc/ftpusers....

Ivan Ferreira
Honored Contributor

Re: FTP Login fails

Check that the home directory exists and for prodctrl and the users has the right permissions over it.

Can you SSH as prodctrl?

What is your /etc/pam.d/proftpd configuration?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Qcheck
Super Advisor

Re: FTP Login fails

Hi Ivan,

Home directory for prodctrl exists with right permissions. And also I can ssh as prodctrl.

And the /etc/pam.d/proftpd file consists follows:

#%PAM-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_stack.so service=system-auth
auth required pam_shells.so
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth

Thanks and waiting for the response.