Operating System - HP-UX
1837180 Members
2580 Online
110113 Solutions
New Discussion

why I can't ftp into host

 
Rambo_1
Regular Advisor

why I can't ftp into host

Hi I can telnet but can't ftp into host.
what can I do?
14 REPLIES 14
John Poff
Honored Contributor

Re: why I can't ftp into host

Hi,

Do you have the ftp daemon configured in your inetd.conf file?

JP
Michael Selvesteen_2
Trusted Contributor

Re: why I can't ftp into host

Make sure ftp deamon runs in the remote host at the default port 21.

Edit /etc/inetd.conf

Be sure ftpd is allowed. Uncomment the ftpd line if commented.

"ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l"

And then try /etc/inetd -c to restart inetd

IF SSH installed try using sftp, It is secure, flexible and has more option than the conventional FTP.


Hope this helps.
Muthukumar_5
Honored Contributor

Re: why I can't ftp into host

Is ftpd running there. Check on /etc/inetd.conf for having ftpd access as,
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

Else put this and reconfigure inetd as inetd -c

Another reason may be, some time your user may be blocked on /etc/inetd.sec file
Check there too.
Easy to suggest when don't know about the problem!
bhavin asokan
Honored Contributor

Re: why I can't ftp into host

in /etc/inetd.conf see the following line is
uncommented.

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 006

in /etc/services see the following lines are uncommented.

ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)

check the /etc/ftpd/ftpusers file is existing or not,if yes remove the entry for the ftpuser name you want from file

after editing the inetd.conf or services file

/sbin/init.d/inetd stop
/sbin/init.d/inetd start


regds,


bhavin asokan
Honored Contributor

Re: why I can't ftp into host

hi,

see /var/adm/inetd.sec file for that ftp is restricted to some users.

see man page of inetd.sec for more setails.

regds,
john kingsley
Honored Contributor

Re: why I can't ftp into host

Make sure the account you are using is not listed in /etc/ftpd/ftpusers. Accounts listed in here are not allow to login using ftp.

Also check /etc/shells. Make sure the login shell for the account you are using is listed in this file.
Joakim Brosten
Frequent Advisor

Re: why I can't ftp into host

Check the file /etc/shells, the users default shell must be stated there.

/JB
Rambo_1
Regular Advisor

Re: why I can't ftp into host

Thanks for all of advice...
I used the user"settle" to ftp ,but failed.
I modified passwd of the "settle" but ftp still failed.
Then I add a new user such as ftp-tset, and the ftp is ok whit this user .
Ted Buis
Honored Contributor

Re: why I can't ftp into host

Hopefully you have a root password set.
Mom 6
Prashant Zanwar_4
Respected Contributor

Re: why I can't ftp into host

I believe all it has to do is with /etc/ftpd/ftpusers file.
Check the entries in this file. Remove user whichever you want to use ftp.
Check /var/adm/syslog for successful ftp connection or failure.
Once you change the ftpusers file, you may do inetd -c to reconsider the config.

Hope it helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Shine_5
Frequent Advisor

Re: why I can't ftp into host

Hello

This can result when the user is restricted by an entry in the ftpusers file.

/etc/ftpusers (HP-UX 10.X) and /etc/ftpd/ftpusers (HP-UX 11.X) is
a file that is used to restrict access to the system using ftp.
ftpd rejects remote logins to local user accounts that are named in
ftpusers. According to the man page man 4 ftpusers:

ftpd rejects remote logins to local user accounts that are named in
ftpusers. Each restricted account name must appear alone on a line
in the file. The line cannot contain any white space. User accounts
that specify a restricted login shell in /etc/passwd should be listed
in ftpusers because ftpd accesses local accounts without using their
login shells. UUCP accounts should be listed in ftpusers. If
ftpusers does not exist, ftpd skips the security check.



Regards
Shine
Govind_3
Regular Advisor

Re: why I can't ftp into host

Hi Rambo,
Howdy? Definetely a /etc/ftpd/ftpusers problem OR the Shell for "settle" might be set to /bin/false Check that.
Goodluck
Rambo_1
Regular Advisor

Re: why I can't ftp into host

Thanks a lot for all of help ...
I had checked the /etc/ftpd/ftpusers ,nothing in this file.It's really bad new to me and make me so confused ! ! Can I delete those accounts and then re-create them?
Rambo_1
Regular Advisor

Re: why I can't ftp into host

I add a "settle"users default shell into the /etc/shells , the ftp is OK now ! thanks for all again !