HELP: ftp still login incorrect

HELP: ftp still login incorrect

Post by Sharon Wan » Thu, 28 Sep 2000 14:32:35



I've been struggling with this ftp login failure problem for
a month and still no clue.  Here is the symptom:  I login
as a regular user with login password and always get the
following

Connected to host.domain
220 host.domain FTP server (Version wu-2.5.0(1) Tue Sep 21 16:48:12 EDT
1999) ready.
Name (host:me): me
331 Password required for me.
Password:
530 Login incorrect.
Login failed.
ftp> quit

I thought the problem might be because /etc/shadow was missing
in my initial installation of RedHat 6.1 and ftpd (or in.ftpd)
needs to check this file, so I created /etc/shadow using pwconv.
It didn't solve the problem.  Then I checked /dev/tty, the mode
is 666, fine.  In /var/log/message and secure, it logged
ftpd[_number_]: cmd failed, nothing more than that.  So I am
speculating that ftpd somehow failed to get the password
correct for any given user.  What else could possibly be wrong?

Thanks.

_______________
P.S.: the /etc/ftpaccess and /etc/ftpusers

# in /etc/ftpaccess
loginfails 2
class   local   real,guest,anonymous *.domain 0.0.0.0
class   remote  real,guest,anonymous *
limit   local   20  Any                 /etc/msgs/msg.toomany
limit   remote  100 SaSu|Any1800-0600   /etc/msgs/msg.toomany
limit   remote  60  Any                 /etc/msgs/msg.toomany
readme  README*    login
readme  README*    cwd=*
message /welcome.msg            login
message .message                cwd=*
compress        yes             local remote
tar             yes             local remote
private         yes
passwd-check    rfc822  warn
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
delete          no      guest,anonymous         # delete permission?
overwrite       no      guest,anonymous         # overwrite permission?
rename   no  guest,anonymous   # rename permission?
chmod           no      anonymous               # chmod permission?
umask           no      anonymous               # umask permission?
upload  /home/ftp  *             no
upload  /home/ftp  /incoming     yes     root    daemon  0600 dirs
upload  /home/ftp  /bin          no
upload  /home/ftp  /etc          no
alias   inc:    /incoming
cdpath  /incoming
cdpath  /pub
cdpath  /
path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
guestgroup ftponly

# in /etc/ftpuser
root
uucp
news

 
 
 

HELP: ftp still login incorrect

Post by Jimmy HSIE » Sun, 31 Dec 1899 09:00:00


My ftp server has same problem. and I don't know how to fix it too.
but I create new user on system, the new user can login ftp correctly.
It's RH6.1 on my server.

  I've been struggling with this ftp login failure problem for
  a month and still no clue.  Here is the symptom:  I login
  as a regular user with login password and always get the
  following
  Connected to host.domain
  220 host.domain FTP server (Version wu-2.5.0(1) Tue Sep 21 16:48:12 EDT 1999) ready.
  Name (host:me): me
  331 Password required for me.
  Password:
  530 Login incorrect.
  Login failed.
  ftp> quit

  I thought the problem might be because /etc/shadow was missing
  in my initial installation of RedHat 6.1 and ftpd (or in.ftpd)
  needs to check this file, so I created /etc/shadow using pwconv.
  It didn't solve the problem.  Then I checked /dev/tty, the mode
  is 666, fine.  In /var/log/message and secure, it logged
  ftpd[_number_]: cmd failed, nothing more than that.  So I am
  speculating that ftpd somehow failed to get the password
  correct for any given user.  What else could possibly be wrong?

  Thanks.

  _______________
  P.S.: the /etc/ftpaccess and /etc/ftpusers

  # in /etc/ftpaccess
  loginfails 2
  class   local   real,guest,anonymous *.domain 0.0.0.0
  class   remote  real,guest,anonymous *
  limit   local   20  Any                 /etc/msgs/msg.toomany
  limit   remote  100 SaSu|Any1800-0600   /etc/msgs/msg.toomany
  limit   remote  60  Any                 /etc/msgs/msg.toomany
  readme  README*    login
  readme  README*    cwd=*
  message /welcome.msg            login
  message .message                cwd=*
  compress        yes             local remote
  tar             yes             local remote
  private         yes
  passwd-check    rfc822  warn
  log commands real
  log transfers anonymous,real inbound,outbound
  shutdown /etc/shutmsg
  delete          no      guest,anonymous         # delete permission?
  overwrite       no      guest,anonymous         # overwrite permission?
  rename   no  guest,anonymous   # rename permission?
  chmod           no      anonymous               # chmod permission?
  umask           no      anonymous               # umask permission?
  upload  /home/ftp  *             no
  upload  /home/ftp  /incoming     yes     root    daemon  0600 dirs
  upload  /home/ftp  /bin          no
  upload  /home/ftp  /etc          no
  alias   inc:    /incoming
  cdpath  /incoming
  cdpath  /pub
  cdpath  /
  path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
  path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
  guestgroup ftponly

  # in /etc/ftpuser
  root
  uucp
  news

 
 
 

HELP: ftp still login incorrect

Post by John Hal » Sun, 31 Dec 1899 09:00:00


If the user is root there is another mechanism which keeps you from logging in via simple services. I don't know the way to disable that off the top of my head but you can just create a normal user that does _not_ have root access [does not belong to group root] and they can get in just fine. You can also telnet in with that user then use "su" to become root.


  My ftp server has same problem. and I don't know how to fix it too.
  but I create new user on system, the new user can login ftp correctly.
  It's RH6.1 on my server.

    I've been struggling with this ftp login failure problem for
    a month and still no clue.  Here is the symptom:  I login
    as a regular user with login password and always get the
    following
    Connected to host.domain
    220 host.domain FTP server (Version wu-2.5.0(1) Tue Sep 21 16:48:12 EDT 1999) ready.
    Name (host:me): me
    331 Password required for me.
    Password:
    530 Login incorrect.
    Login failed.
    ftp> quit

    I thought the problem might be because /etc/shadow was missing
    in my initial installation of RedHat 6.1 and ftpd (or in.ftpd)
    needs to check this file, so I created /etc/shadow using pwconv.
    It didn't solve the problem.  Then I checked /dev/tty, the mode
    is 666, fine.  In /var/log/message and secure, it logged
    ftpd[_number_]: cmd failed, nothing more than that.  So I am
    speculating that ftpd somehow failed to get the password
    correct for any given user.  What else could possibly be wrong?

    Thanks.

    _______________
    P.S.: the /etc/ftpaccess and /etc/ftpusers

    # in /etc/ftpaccess
    loginfails 2
    class   local   real,guest,anonymous *.domain 0.0.0.0
    class   remote  real,guest,anonymous *
    limit   local   20  Any                 /etc/msgs/msg.toomany
    limit   remote  100 SaSu|Any1800-0600   /etc/msgs/msg.toomany
    limit   remote  60  Any                 /etc/msgs/msg.toomany
    readme  README*    login
    readme  README*    cwd=*
    message /welcome.msg            login
    message .message                cwd=*
    compress        yes             local remote
    tar             yes             local remote
    private         yes
    passwd-check    rfc822  warn
    log commands real
    log transfers anonymous,real inbound,outbound
    shutdown /etc/shutmsg
    delete          no      guest,anonymous         # delete permission?
    overwrite       no      guest,anonymous         # overwrite permission?
    rename   no  guest,anonymous   # rename permission?
    chmod           no      anonymous               # chmod permission?
    umask           no      anonymous               # umask permission?
    upload  /home/ftp  *             no
    upload  /home/ftp  /incoming     yes     root    daemon  0600 dirs
    upload  /home/ftp  /bin          no
    upload  /home/ftp  /etc          no
    alias   inc:    /incoming
    cdpath  /incoming
    cdpath  /pub
    cdpath  /
    path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
    path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
    guestgroup ftponly

    # in /etc/ftpuser
    root
    uucp
    news

 
 
 

1. ftp login 530 Login incorrect?

I have installed wu-ftp on Sunos. Only thing i need is to configure
ftp server to restrict access for users to parent directories(system).
Just access in own home directory

I have started ftpd -a option to read ftpaccess file. And created
user:

test:x:105:911::/home/test/./:/bin/ftponly

group file:

ftpusers::911:

also have created directory structure for ftp home dir:
./lib
./.sh_history
./bin/ls
./bin
./etc/passwd
./etc/group
./etc
./usr/lib/ld.so
./usr/lib/ld.so.1
./usr/lib/libc.so.1
./usr/lib/libdl.so.1
./usr/lib/libintl.so
./usr/lib/libintl.so.1
./usr/lib/libw.so.1
./usr/lib
./usr
./dev/tcp
./dev/zero
./dev

in /etc/ftpaccess :
class   local   guest
guestgroup ftpusers

when you trying to ftp like #ftp localhost   -- you got.
-----sdf
Name (localhost:test): test
331 Password required for test.
Password:
530 Login incorrect.
Login failed.
ftp> quit
221 Goodbye.

Can anyone help me. Why this happens?????

2. mySQL download

3. Verizon FTP stopped working recently 530 login incorrect Help!

4. DAT problem

5. NET-2: FTP login incorrect ?!

6. -D_REENTRANT vs. -D_THREAD_SAFE

7. 'login incorrect' message when trying to ftp to SCO-UNIX box

8. Mach64 Setup

9. FTP : Login always incorrect

10. 'login incorrect' message when trying to ftp to a SCO UNIX box

11. FTP login incorrect: solution

12. FTP: Login incorrect

13. FTP - 530 Login incorrect message