1836460 Members
2481 Online
110101 Solutions
New Discussion

Re: ftp problem

 
srinivas_12
Occasional Contributor

ftp problem

Hi ,
i have problem not able to do ftp to my HP-UX 10.2.
when i try to start ftp to my unix box , after entring username i am getting access denied without even asking passwd.
so i try to look in the syslog file , here is the exact message in syslog file " FTP LOGIN FEFUSED FROM IP ADDRESS : USERNAME :INVALID USER SHELL "
PLEASE NOTE THE LOGIN SHELL FOR THE USER IS /BIN/SH AND HP-UX 10.2.
can anybody suggest me how to provide ftp access ?
Thanks & regards
4 REPLIES 4
Helen French
Honored Contributor

Re: ftp problem

Hi,

Check the file /etc/shells. This should have the entry of your shell. If you don't have the file, create it or edit it.

HTH,
Shiju
Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: ftp problem

Hi:

First, don't use '/bin' or '/lib'. These are transition links to 'usr/bin' and '/usr/lib' respectively. You should declare your shells in '/etc/passwd' accordingly.

The file '/etc/shells' catalogs the list of legal shells. If it is *not* present it defaults to this:

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

If you wish, for the moment to continue to use '/bin/sh', then add it to your /etc/shells.

Regards!

...JRF...
Darrell Allen
Honored Contributor

Re: ftp problem

Hi,

By default, /etc/shells does not exist (I believe). If you create /etc/shells, you need to list the shell of everyone that is allowed to ftp into your system. For more info see:
man shells
man ftpd
man getusershell

man getusershell lists the default "legal" shells. Each ftp user must use a legal shell. If the user's shell is not a default shell, /etc/shells must be created.

Also, you could simply change the user's shell to one listed in man getusershell. On 11.0 (I don't remember about earlier HPUX versions) /bin is a symlink pointing to /usr/bin. So you could change the user's shell in /etc/passwd to /usr/bin/sh.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Sanjay_6
Honored Contributor

Re: ftp problem

Hi,

Check you /etc/passwd file. In all probability your shell is set to /usr/bin/false. Edit /etc/shells and then add this entry to this file,

/usr/bin/false

Hope this helps.

Regds