SUMMARY: ftp on Solaris!

From: Jalal Soltanian-Zadeh (jalals@rad.hfh.edu)
Date: Mon Jan 08 1996 - 13:01:29 CST


Special Thank to: charest@CANR.Hydro.Qc.CA

The original question and answers are as follows:

The Original Q:

>
> I am running both SunOS and Solaris on our systems here. The ftp between the
> systems running SunOS is working fine. However the ftp on the systems
> running Solaris has a minor problem. I can ftp to a system running Solaris
> as a root, but not as a user. It gives me an error like:
>
> Login incorrect.
> Login failed.
>
> I have checked out all the related files, and have followed by the book.
However
> no luck. Has someone come across this problem before. Please let me.

The A's:

It may be related to the shells the user accounts are using. If a
user account is setup to use a "non-standard" shell, that shell must be listed
in the /etc/shells file or the login (or ftp connection) will fail. By default,
Solaris doesn't have an /etc/shells file. Instead Bourne shell, C shell, and
a couple of others are permitted. Note root is usually setup to use Borune
shell which is why it would work by default with FTP.

        If you need to add additional shells as valid (e.g GNU bash or tsh) you
will need to create an /etc/shells file and include all valid shells in it. The
syntax of the file is to list one shell per line and each shell must be
specified as a full path. For example:

        /usr/bin/sh
        /usr/bin/csh
        /opt/gnu/bin/bash

Also note that once an /etc/shells file has been created, only those shells
which are explictily listed in it are considered valid by the system.
Anotherwords you have to list all of the regular system shells you want to use
as well as any "non-standard" shells.

If your run nisplus on security level or 2 (=3D=3D> rpc.nisd -S 1 (or 2)) =
then
it means that your user, when loggin, match the password.org_dir file for
but that the credetials do not match. When this occurs, the user is warned
of that on his logging and he cannot use ftp ...

To correct that, log in, then issue the "keylogin" command with the
network passwd, then issue "chkey" command.

Assuming that all of the usual suspects (shell in /etc/shells?) have been
eliminated, does the user, by chance, have a password longer than 8 characters?
I have noticed that the Solaris ftp does not always allow login if you type more
than 8 characters for the password, but allows login if you truncate the
password to 8 characters.

Thank to :

jg3314@ainfs1.sbc.com
leclerc@austin.asc.slb.com
MAIMAN@chplab.chp.edu
alberts@eng.adaptec.com
Anatoly.Lisovsky@kamaz.kazan.su
roland@technet.sg
scott-allendorf@uiowa.edu
george@shiva.hunter.cuny.edu
jason@wwa.com
js@cctechnol.com
hagberg@ece.arizona.edu

Please let me know if you need any more information.

Regards,
Jalal
HFHS



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:50 CDT