LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with ProFTPd (https://www.linuxquestions.org/questions/linux-software-2/help-with-proftpd-33724/)

BamaFeva 10-25-2002 10:07 AM

Help with ProFTPd
 
I have the new rc2 of proftp installed. All the example configs I can find for it all involve anonymous logins. I do not want any, I just want user logins. I have a passwd file setup with jsut the users I want to be allowed access but I need some help with the config file since I could not find any example configs with no anonymous access. I have it setup but cannot even log on. It gives me a login incorrect message but I know the info is correct and I have AuthUserFile directive in the conf file. Can someone please help?

trickykid 10-25-2002 10:35 AM

Check your /etc/ftpaccess or /etc/ftpusers file and see if anything there has anonymous login enabled if you have those files.

BamaFeva 10-25-2002 11:16 AM

My /etc/ftpusers file is just the default of users not to allow on
I played with the /etc/ftpaccess file a little including leaving it blank and still could not log on. I did not notice any settings for anonymous logins in either file.

markus1982 10-25-2002 11:45 AM

Example of ProFTPd configuration file:
Code:

# full documentation is located at
# http://proftpd.linux.co.uk/localsite...userguide.html

# ---------------------------------------------------------
# basic server settings
# ---------------------------------------------------------
# Help the abuse mailers ;-)
        ServerAdmin                "admin@domain.com"
# Don't help attackers to find exploits easily ...
        ServerIdent                off
# Server is started/stopped through xinetd (inetd)
        ServerType                inetd
# It's the default ...
        DefaultServer                on
# Allow logins from Foreign addresses
        AllowForeignAddress        on
# Port where the server will respond to
        Port                        21
# Passive Ports (port range), e. g. for firewall
        PassivePorts                64000 65535
# Maximal Instances of server ..
        MaxInstances                150
# server started as
        User                        nobody
        Group                        nogroup
# timeout settings
        TimeoutLogin                60
        TimeoutIdle                300
        TimeoutNoTransfer        300
        TimeoutStalled                300
# logging settings
#        TransferLog                /var/log/proftpd-transfer.log

# ---------------------------------------------------------
# default directory settings
# ---------------------------------------------------------
<Directory /*>
# hide files where the user has no access to
        HideNoAccess                on
</Directory>

# ---------------------------------------------------------
# global configuration
# ---------------------------------------------------------
<Global>
# 1. security related configuration
#        a) shell account needed to login?
        RequireValidShell        off
#        b) no anonymous logins
        LoginPasswordPrompt        off
        <Limit LOGIN>
                DenyUser        anonymous
        </Limit>
#        c) maximum login attempts
        MaxLoginAttempts        3
#        d) chrooted to home directory
        DefaultRoot                ~
#        e) deny these filenames
        PathDenyFilter                "(\.ftpaccess)$"
#        PathDenyFilter          "(\.htaccess)|(\.ftpaccess)$"
#        f) allow users to overwrite files they own
        AllowOverwrite                on
#        g) allow people to overwrite files
#                NOTE:        will allow any writable file to be corrupted by a malicious user
#                        WsFTP seems having problems without it
        AllowStoreRestart        on
#        h) allow transfers to be continued ...
        AllowRetrieveRestart        on

# 2. messages displayed
#        a) before login
        DisplayConnect                /etc/proftpd/login.msg
#        b) after login (welcome msg)
#        DisplayLogin                /etc/proftpd/welcome.msg


# 3. some performance tuning
#        a) delays off
        tcpNoDelay                off
</Global>

From now on users on your box can login (except root). So for instance if you use
Code:

useradd -g users example -s /bin/false
And set a passwd for that user, that user may logon and will be banned to the homedirectory!


If you need more help please refer to http://www.proftpd.org/docs/

BamaFeva 10-25-2002 03:26 PM

Thx markus, it works now!! I think my main problem was I didn't have all of that in the <GLOBAL> I just had it inside the file. I appreciate the help.


All times are GMT -5. The time now is 06:29 AM.