1847213 Members
3313 Online
110263 Solutions
New Discussion

Re: FTP issue

 
UnixT
Frequent Advisor

FTP issue

Hi all,

I am not able to use the ftp login for hpux 11.23 server.

$ grep pnetftp /etc/passwd
pnetftp:x:567:203:PTS FTP account,,,:/abb/wy/net/ftp:/usr/bin/false

Name (10.57.19.149:pnair): pnetftp
331 Password required for pnetftp.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

/home/ksudhak $ cd /etc/ftpd
/etc/ftpd $ ls -la
total 16
dr-xr-xr-x 4 bin bin 96 Sep 8 2004 .
dr-xr-xr-x 34 bin bin 8192 Aug 16 06:34 ..
dr-xr-xr-x 2 bin bin 96 Jun 27 11:02 ftp-exec
dr-xr--r-- 2 bin bin 96 Sep 8 2004 pids
/etc/ftpd $


Could you please verify the above outputs and suggest what needs to be done for using ftp login without errors.

Regards,
Pradeep Kumar.
9 REPLIES 9
George_Dodds
Honored Contributor

Re: FTP issue

You dont seem to have the following file for allowed ftp users.

/etc/ftpd/ftpusers
Dennis Handly
Acclaimed Contributor

Re: FTP issue

>George: You don't seem to have the following file for allowed ftp users.

ftpusers(4) is the DISallowed user file.
George_Dodds
Honored Contributor

Re: FTP issue

Yup think i'm still half asleep ;-)
Steven Schweda
Honored Contributor

Re: FTP issue

> You dont seem to have the following file
> for allowed ftp users.
>
> /etc/ftpd/ftpusers

Perhaps that's because it's for _rejected_
FTP users, not "allowed" FTP users.

man ftpusers

Back to the real problem, many things are
possible. "man ftpd" can be useful:

+ The user must have a standard shell
returned by getusershell().

What's in "/etc/shells"? ("/usr/bin/false"
should be, if you expect this user to get
in.) ("man getusershell".)

Anything helpful in the system log files?
piyush mathiya
Trusted Contributor

Re: FTP issue

Hi Pradeep,

Then also you need to check /etc/ftpusers, if it is exist then check that "pnetftp" user name must not there. otherewise you can not use ftp with this user.

And one more thing, are you sure the password is perfect as some time it may be problem with password, if you have used some special character in password you need to use "\" before that.

Check these things...

Regards,
Piyush Mathiya
UnixT
Frequent Advisor

Re: FTP issue

We fixed the issue by putting the entry in /etc/shells. Thanks to all for the support.
James R. Ferguson
Acclaimed Contributor

Re: FTP issue

Hi:

Create, if you don't alrady have, '/etc/shells' and populate it with:

/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/usr/bin/false

Make the permissions readable by everyone (-r--r--r--). Note the '/usr/bin/false' entry.

Regards!

...JRF...
George_Dodds
Honored Contributor

Re: FTP issue

Is ftpd listed in /etc/inetd.conf?

Also has this ever worked?
Dennis Handly
Acclaimed Contributor

Re: FTP issue

If our answers were helpful, please read the following about reopening threads and assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
http://forums.itrc.hp.com/service/forums/helptips.do?#33