proFTPd having password troubles

Posted on 2004-11-26
Last Modified: 2010-04-22
I have a simple linux server with apache and proftpd installed to server up a web page.  Everything worked great until the day I forgot my passwords.  Instead of reloading linux I put in the install disk, went to recovery mode, and changed the root password.  I rebooted, logged in, changed the passwords, but now I can't ftp into the machine.  I have tried using passwd to change the password with no luck.

Any suggestions on why proftpd will not take this new password?
Question by:DavidBonfoey
    LVL 5

    Accepted Solution

    Maybe your ProFTPD configured to not use /etc/passwd file for authentication...
    If you authenticate users againt other user file, then you must change user pasword with ftpasswd tool.

    LVL 38

    Assisted Solution


       You might want to check /etc/proftpd.conf or /usr/local/etc/proftpd.conf for
    "AuthUserFile" and "AuthGroupFile" directives. Those 2 directives tell you which password file you use for proftpd.
    Besides, if you use password file for authentication, please make sure "AuthPAMAuthoritive" is off.

    LVL 4

    Expert Comment

    what does your /var/log/secure /var/log/messages /var/log/xferlog have in it, when you try and ftp in.

    also is it only the root account that you can't ftp in as, or have you tried creating / used another linux account and see what happens.

    Author Comment

    I do not have a ftpasswd utility

    Wesly Chen:
    I have set "AuthUserFile /etc/passwd" and "AuthGroupFile /etc/group" and still no luck.  AuthPAMAuthoritive was already off.

    Nemesis Services:
    The secure log is blank.  The xferlog has all the transfers from when I was able to successfully log in.  I have tried creating a new user and still no luck.  I have tried logging in as root (with "RootLogin on") and still no luck.

    LVL 38

    Expert Comment

    > I have set "AuthUserFile /etc/passwd" and "AuthGroupFile /etc/group" and still no luck
    What's your original/default setting?
    LVL 4

    Expert Comment

    can you post your proftpd.conf and also the operating system your using it on, and also the version of proftpd thanks :)
    LVL 5

    Expert Comment

    > I have set "AuthUserFile /etc/passwd" and "AuthGroupFile /etc/group" and still no luck

    If you using shadow passwords on your sytem, then it won't work...

    Simply delete or comment out "AuthUserFile" and "AuthGroupFile" lines...

    Author Comment

    The OS is Linux Mandrake 9.2, I am not using kde, gnome or x windows, just a terminal.  I tried deleting the authuserfile and authgroupfile (which is the original method) and still no luck.

    Here is the proftpd.conf file:

    ServerName             "my Server"
    ServerType              standalone
    DefaultServer           on
    AllowStoreRestart     on
    Port                         21
    Umask                     022
    MaxInstances           30
    User                        nobody
    Group                      nobody
    <Directory />
        AllowOverwrite     on
    AuthPAMAuthoritative off
    UseFtpUsers              off
    RootLogin                  on

    LVL 4

    Assisted Solution

    I've supplied a full proftpd.conf for your pleasure, let me know if it works: :)
    then restart proftpd daemon

    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.

    ServerName                      "FTP Server"
    ServerType                     standalone
    DefaultServer                   on

    # Port 21 is the standard FTP port.
    Port                            21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                           022

    # To prevent DoS attacks, set the maximum number of child processes
    # to 30.  If you need to allow more than 30 concurrent connections
    # at once, simply increase this value.  Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances                    30

    # Set the user and group that the server normally runs at.
    User                            nobody
    Group                           nobody

    # Normally, we want files to be overwriteable.
    <Directory /*>
      AllowOverwrite                on

    # A basic anonymous configuration, no upload directories.
    <Anonymous ~ftp>
      User                          ftp
      Group                         ftp
      # We want clients to be able to login with "anonymous" as well as "ftp"
      UserAlias                     anonymous ftp

      # Limit the maximum number of anonymous logins
      MaxClients                    10

      # We want 'welcome.msg' displayed at login, and '.message' displayed
      # in each newly chdired directory.
      DisplayLogin                  welcome.msg
      DisplayFirstChdir             .message

      # Limit WRITE everywhere in the anonymous chroot
      <Limit WRITE>
    LVL 4

    Expert Comment


    Perhaps the points could be shared between the experts in here ?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    ​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
    BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (, affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now