1830045 Members
10765 Online
109998 Solutions
New Discussion

Unable to perform FTP

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

Unable to perform FTP

hi ,

I have 60-70 HP 9000 Workstations in a network.

I am facing a problem when i do an ftp to a machine called "hpws11". It says the following error while logging in.

"
hpsr5_hcl >ftp hpws11
Connected to hpws11.
220 hpws11 FTP server (Version 1.7.212.3 Wed Jul 14 10:24:05 GMT 1999) ready.
Name (hpws11:hcl): hcl
530 User hcl access denied.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

"

I saw the /var/adm/syslog/syslog.log it says,

May 15 14:35:57 hpws11 ftpd[2119]: connection from hpsr5 at Tue May 15 14:35:57
2001
May 15 14:35:59 hpws11 ftpd[2119]: FTP LOGIN REFUSED FROM hpsr5, hcl: Invalid user shell

my machine name is hpsr5 (192.9.208.99)
ftp server is hpws11 (192.9.208.252 )
my user name is hcl
but if i do an ftp as another user it works.

I cheked up for a /etc/ftpusers .........does not exist
then i saw /var/adm/inetd.sec.........no deny options for ftpd

Please help,

Kaps
Nothing is impossible
6 REPLIES 6
Printaporn_1
Esteemed Contributor
Solution

Re: Unable to perform FTP

Hi,

try put all shell name to /etc/shell
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: Unable to perform FTP

mv /etc/securetty /etc/securetty.old
Vincent Stedema
Esteemed Contributor

Re: Unable to perform FTP

Printaporn is right. If your system has an /etc/shells file, you have to add an entry to it for user hcl's login shell.
KapilRaj
Honored Contributor

Re: Unable to perform FTP

hi,

tried both the options but prob persists

01. changed shell to /etc/shell ....... tried ftp same error (Some other users are having the same shell ie. /bin/sh but they are able to perform ftp)

02. /etc/securetty file does not exist

Ay other options

kaps
Nothing is impossible
Vincent Stedema
Esteemed Contributor

Re: Unable to perform FTP

What I meant is:

If user hcl has /usr/bin/ksh as his shell, then open the file /etc/shells in vi and add a line for /usr/bin/ksh.

Here is what a sample /etc/shells looks like:

######################
/sbin/sh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/csh
######################

All users whose shells that have an entry in /etc/shells will be able to login via ftp, unless restricted by other methods (ftpusers, ftpaccess).

Vincent
KapilRaj
Honored Contributor

Re: Unable to perform FTP

Thanks you all,

Yes !!!! It worked !!!!.

I just made a /etc/shells to hpws11 machine. and it started working fine.

The file did not exist, and sorry in my qtn i mentioned other users it worked, but the user names i tried were not in the passwd file. but in that case the system used to prompt for a password.

Thanks

kaps
Nothing is impossible