[comp.unix.questions] Why does ftp deny permission?

weimer@garden.kodak.COM (Gary Weimer (588-0953)) (02/28/91)

In article <ERAN.91Feb26142049@elaine3.stanford.edu>,
eran@elaine3.stanford.edu (eran yehudai) writes:
|> The ftp on my sun 3/50 (sunOS Release 4.0) refuses connection to
|> ordinary users before asking them for password:
|> 
|> unixhub% ftp thsun1
|> Connected to thsun1.SLAC.Stanford.EDU.
|> 220 thsun1.SLAC.Stanford.EDU FTP server (SunOS 4.0) ready.
|> Name (thsun1:eran): eran
|> 530 User eran access denied.
|> Login failed.
|> ftp>
|> 
|> Anonymous ftp works fine. 
|> Any ideas?

Does thsun1 have a file named /etc/ftpusers? if so, any users listed in
it will not be able to ftp to it.

weimer@ssd.kodak.com ( Gary Weimer )

eran@elaine3.stanford.edu (eran yehudai) (02/28/91)

In article <1991Feb27.182530.28944@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes:

     Probably, ftp is denying login because your users all have shells that
   aren't listed in /etc/shells.  You probably all use the "shell of choice" and
   you've forgotten to add it to /etc/shells.  See the man page for ftpd, which
   documents the requirements which must be met for a user to be able to ftp to a
   host.

That was it. Thanks.
--
Eran Yehudai
eran@thsun1.slac.stanford.edu

jik@athena.mit.edu (Jonathan I. Kamens) (02/28/91)

  Probably, ftp is denying login because your users all have shells that
aren't listed in /etc/shells.  You probably all use the "shell of choice" and
you've forgotten to add it to /etc/shells.  See the man page for ftpd, which
documents the requirements which must be met for a user to be able to ftp to a
host.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710

jls@ithaque.inria.fr (Jean-Luc Szpyrka) (03/01/91)

In article <ERAN.91Feb26142049@elaine3.stanford.edu>, eran@elaine3.stanford.edu (eran yehudai) writes:
> The ftp on my sun 3/50 (sunOS Release 4.0) refuses connection to
> ordinary users before asking them for password:
> 
> unixhub% ftp thsun1
> Connected to thsun1.SLAC.Stanford.EDU.
> 220 thsun1.SLAC.Stanford.EDU FTP server (SunOS 4.0) ready.
> Name (thsun1:eran): eran
> 530 User eran access denied.
> Login failed.
> ftp>
> 
> Anonymous ftp works fine. 
> Any ideas?
> --
> Eran Yehudai
> eran@thsun1.slac.stanford.edu


1) your login name (on thsun1.SLAC.Stanford.EDU) must noy be present
in the /etc/ftpusers file (if this file exists)

2) your login shell (/binsh, /bin/csh, /bin/tcsh ...) must be
present in the file /etc/shells

(I think it's the reason why anonymous ftp (with usually /bin/sh) works fine,
and you (/bin/tcsh ???) not.)

 --------------------------------------------------------------------
 Jean-luc Szpyrka
 Email:  jls@mirsa.inria.fr			Tel: (33) 93 65 78 32
 --------------------------------------------------------------------