1833698 Members
3476 Online
110062 Solutions
New Discussion

FTP with zsh

 
Khashru
Valued Contributor

FTP with zsh

Hi,

Is it possible to do ftp with zsh. The system is running hpux 11i.
9 REPLIES 9
Muthukumar_5
Honored Contributor

Re: FTP with zsh

Try to start ftp. Are you getting any error?!

ftp
ftp>bye

?

--
Muthu
Easy to suggest when don't know about the problem!
Khashru
Valued Contributor

Re: FTP with zsh

Apr 3 15:42:21 twrldev ftpd[29997]: FTP LOGIN REFUSED (bad shell) FROM ausyd01dt0396.towerlife.com.au [10.6.129.39], DEVDIS
Apr 3 15:43:33 twrldev ftpd[29997]: FTP session closed
Apr 3 15:43:39 twrldev ftpd[106]: FTP LOGIN REFUSED (bad shell) FROM ausyd01dt0396.towerlife.com.au [10.6.129.39], DEVDIS
Apr 3 15:43:42 twrldev ftpd[106]: FTP session closed
Apr 3 15:43:46 twrldev ftpd[107]: FTP LOGIN REFUSED (bad shell) FROM ausyd01dt0396.towerlife.com.au [10.6.129.39], DEVCOM
Apr 3 15:43:50 twrldev ftpd[107]: FTP session closed
Arunvijai_4
Honored Contributor

Re: FTP with zsh

Hi Khashru,

Check /etc/shells and make sure that zsh exists and it contains the shell name (zsh) specified in the password file.

See man ftpd and man getusershell for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Shah Gaurang B.
Frequent Advisor

Re: FTP with zsh

hi khashru,

check /etc/service file is there any # mark at the service ftp also check inetd.sec file .

bye
gaurang
Khashru
Valued Contributor

Re: FTP with zsh

I am able to ftp with other user account they donot have zsh. zsh is also installed in the system.
James R. Ferguson
Acclaimed Contributor

Re: FTP with zsh

Hi:

If, as mentioned, you have 'etc/shells' defined an '/usr/bin/zsh' as an entry therein, look at '/etc/ftpd/ftpusers' for the name of the account to which you are trying to FTP. If that account is listed in 'ftpusers' then a remote login to the named local account will be rejected by FTP during a login attempt.

Regards!

...JRF...

Khashru
Valued Contributor

Re: FTP with zsh

Hi,

There is no /etc/shells file in the system. But in /usr/bin there is an entry
lrwxr-xr-x 1 root sys 42 Dec 12 17:12 /usr/bin/zsh -> /ora1/mcifinst/zsh/zsh-RUN/opt/zsh/bin/zsh

i have also checked /etc/ftpusers. there is no entry.
James R. Ferguson
Acclaimed Contributor

Re: FTP with zsh

Hi (again):

Create '/etc/shells' with the following entries (one per line):

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

Make the ownership bin:bin and chmod 444 so anyone can read it. Now try your FTP again.

Regards!

...JRF...
Khashru
Valued Contributor

Re: FTP with zsh

Thanks JRF. It worked. i wanted to submit more point but the system does not allow me.