Operating System - HP-UX
1834185 Members
2786 Online
110064 Solutions
New Discussion

ftp login fails for users with csh shell

 
SOLVED
Go to solution
Dave Wherry
Esteemed Contributor

ftp login fails for users with csh shell

I have a new 11.i server on which we are building a new SAP 4.6 environment. At 4.6 it seems that the standard SAP ID's have switched to /bin/csh.
From other servers we can not ftp and login with these ID's using /bin/csh. Any ID's that are still using /usr/bin/ksh still work so ftp itself works.
Any ideas why a csh user can not do ftp?

Thanks.
Dave
7 REPLIES 7
S.K. Chan
Honored Contributor
Solution

Re: ftp login fails for users with csh shell

Does file /etc/shells (444 bin:bin) exists on your system ? The content should look like ..

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

/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/keysh
/bin/pam
/bin/posix/sh

/usr/bin/bash

That's what I have on mine.
Craig Rants
Honored Contributor

Re: ftp login fails for users with csh shell

Remember that csh on hp is not a full fleged csh, it has many problems or is not robust. You may have run into a problem that needs a patch as well.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Uday_S_Ankolekar
Honored Contributor

Re: ftp login fails for users with csh shell

Hi,

Create a file named shells in /etc directory with all the sh (csh,ksh sh etc )used in passwword file

Goodluck
-USA..
Good Luck..
MANOJ SRIVASTAVA
Honored Contributor

Re: ftp login fails for users with csh shell

Hi Dave

The problem is with /etc/shells , in case the users default shell is csh and the same is present in /etc/shells then the user will not be able to login , please remove it from there or just change the default shell in /etc/passwd .



Manoj Srivastava
Dave Wherry
Esteemed Contributor

Re: ftp login fails for users with csh shell

Thanks everyone.
I created the /etc/shells file as S.K. described. It works just fine now.
Manoj, your post said just the opposite. To remove csh from the shells file. It does need to be in the shells file to work.
I do agree that I would rather not use csh. As Craig said it seems to not be full fledged. It's just not a good idea to deviate from SAP standards. They are a pain.

Dave
MANOJ SRIVASTAVA
Honored Contributor

Re: ftp login fails for users with csh shell

Hi Dave

You are right , I got confused , thanx for the clarity.

Manoj Srivastava
hpuxrox
Respected Contributor

Re: ftp login fails for users with csh shell

This is a clasic.

You need to add /usr/bin/csh to the /etc/shells file.