LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-06-2009, 02:21 PM   #1
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Rep: Reputation: 1
Angry proftpd fedora v1.3.1-8.fc10


Im having grave problems with starting my proftpd server again.

Really have no clue whats gone wrong with it, looked at all the logs seems fine to me, doesnt create any sort of error log though when I attempt a restart.

Its almost fresh from install more or less, attempted the:

http://www.howtoforge.com/virtual_ho..._mysql_fedora7

Tutorial and still no luck at all, even tried removing those steps and installing it fresh still no luck.

Here's my config file for it:

Quote:
# This is the ProFTPD configuration file

ServerName "ProFTPD server"
ServerIdent on "FTP Server ready."
ServerAdmin root@localhost
ServerType standalone
#ServerType inetd
DefaultServer on
AccessGrantMsg "User %u logged in."
#DisplayConnect /etc/ftpissue
#DisplayLogin /etc/ftpmotd
#DisplayGoAway /etc/ftpgoaway
DeferWelcome off

# Use this to excude users from the chroot
DefaultRoot ~ !adm

# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c

# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off

# 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

# Default to show dot files in directory listings
ListOptions "-a"

# See Configuration.html for these (here are the default values)
#MultilineRFC2228 off
#RootLogin off
#LoginPasswordPrompt on
#MaxLoginAttempts 3
#MaxClientsPerHost none
#AllowForeignAddress off # For FXP

# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on

# 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 20

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

# Disable sendfile by default since it breaks displaying the download speeds in
# ftptop and ftpwho
UseSendfile no

# This is where we want to put the pid file
ScoreboardFile /var/run/proftpd.score

# Normally, we want users to do a few things.
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
TransferLog /var/log/proftpd/ftplog
SyslogLevel error
</Global>

# Define the log formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"

# TLS
# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html
#TLSEngine on
#TLSRequired on
#TLSRSACertificateFile /etc/pki/tls/certs/proftpd.pem
#TLSRSACertificateKeyFile /etc/pki/tls/certs/proftpd.pem
#TLSCipherSuite ALL:!ADH:!DES
#TLSOptions NoCertRequest
#TLSVerifyClient off
##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300
#TLSLog /var/log/proftpd/tls.log

# SQL authentication Dynamic Shared Object (DSO) loading
# See README.DSO and howto/DSO.html for more details.
#<IfModule mod_dso.c>
# LoadModule mod_ban.c
# LoadModule mod_ifsession.c
# LoadModule mod_quotatab.c
# LoadModule mod_quotatab_file.c
# LoadModule mod_sql.c
# LoadModule mod_sql_mysql.c
# LoadModule mod_sql_postgres.c
#</IfModule>

# A basic anonymous configuration, with an upload directory.
#<Anonymous ~ftp>
# User ftp
# Group ftp
# AccessGrantMsg "Anonymous login ok, restrictions apply."
#
# # 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 "Sorry, max %m users -- try again later"
#
# # Put the user into /pub right after login
# #DefaultChdir /pub
#
# # We want 'welcome.msg' displayed at login, '.message' displayed in
# # each newly chdired directory and tell users to read README* files.
# DisplayLogin /welcome.msg
# DisplayFirstChdir .message
# DisplayReadme README*
#
# # Some more cosmetic and not vital stuff
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# # Limit WRITE everywhere in the anonymous chroot
# <Limit WRITE SITE_CHMOD>
# DenyAll
# </Limit>
#
# # An upload directory that allows storing files but not retrieving
# # or creating directories.
# <Directory uploads/*>
# AllowOverwrite no
# <Limit READ>
# DenyAll
# </Limit>
#
# <Limit STOR>
# AllowAll
# </Limit>
# </Directory>
#
# # Don't write anonymous accesses to the system wtmp file (good idea!)
# WtmpLog off
#
# # Logging for the anonymous transfers
# ExtendedLog /var/log/proftpd/access.log WRITE,READ default
# ExtendedLog /var/log/proftpd/auth.log AUTH auth
#
#</Anonymous>

# Configuration for mod_ban
<IfModule mod_ban.c>
BanEngine on
BanLog /var/log/proftpd/ban.log
BanTable /var/run/proftpd/ban.tab

# If the same client reaches the MaxLoginAttempts limit 2 times
# within 10 minutes, automatically add a ban for that client that
# will expire after one hour.
BanOnEvent MaxLoginAttempts 2/00:10:00 01:00:00

# Allow the FTP admin to manually add/remove bans
BanControlsACLs all allow user ftpadm
</IfModule>
Hope this helps someone to help me determine the error.

Thanks,
Jeremy.
 
Old 04-06-2009, 02:23 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Can you post the error messages ?
 
Old 04-06-2009, 02:57 PM   #3
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Angry

I dont have one, or at least cant find it,

Can give you the details i have of it through webmin if you want?

But i have tried making it record errors but nothing seems to be working.
 
Old 04-06-2009, 03:06 PM   #4
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Rep: Reputation: 18
How do you know that its not working? Dont want to sound like a jerk but, have you attempted to FTP from that box to that box like ftp 127.0.0.1? or by the proper IP? this could show you that it is running but you are blocking FTP in the firewall or something. If you have another machine you could use nmap to verify that the server is listening on the port.

also try ps -ux |grep pftpd

I think that is the name of the bin you are running.


Just some thoughts
Mike

Last edited by chackercon; 04-06-2009 at 03:08 PM. Reason: adding some information
 
Old 04-06-2009, 03:29 PM   #5
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Angry

Quote:
Originally Posted by chackercon View Post
How do you know that its not working? Dont want to sound like a jerk but, have you attempted to FTP from that box to that box like ftp 127.0.0.1? or by the proper IP? this could show you that it is running but you are blocking FTP in the firewall or something. If you have another machine you could use nmap to verify that the server is listening on the port.

also try ps -ux |grep pftpd

I think that is the name of the bin you are running.


Just some thoughts
Mike
Firewalls setup fine, shouldnt make the ftp service fail anyhow, everytime I run 'Service proftp start' it comes up with 'FAILED' in red, so there's no point (dont wanna make anyone sound silly but) there's no point in even attempting a 127.0.0.1 (localhost connection).

I'll try /etc/init.d/service proftp start and see if that works, but i doubt it.

Last edited by j.smith1981; 04-06-2009 at 03:30 PM. Reason: correction
 
Old 04-06-2009, 03:41 PM   #6
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Rep: Reputation: 18
My fault if you posted the FAILED error that you got I did not see it. I was just attempting to get my head into what is going on. I thought that you said that you did not get an error, but I see now that it said nothing in the error log. Hope you get this fixed
 
Old 04-06-2009, 03:48 PM   #7
j.smith1981
Member
 
Registered: Feb 2009
Distribution: Mainly CentOS6.4 x64
Posts: 161

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by chackercon View Post
My fault if you posted the FAILED error that you got I did not see it. I was just attempting to get my head into what is going on. I thought that you said that you did not get an error, but I see now that it said nothing in the error log. Hope you get this fixed
I cant remember the syntax but is the init.d command /etc/init.d/service proftpd start meant to work?

Just coming up as '/etc/init.d/service: No such file or directory'

Is that because somethings gone wrong with that file where im meant to start services?

Im confused now cant seem to get the problem sussed.

Can someone help me?
 
Old 04-09-2009, 05:26 PM   #8
chackercon
Member
 
Registered: Jan 2008
Location: Oklahoma
Distribution: Slackware, QNX, Centos 5.2, Dream Linux, BackTrack, Fedora
Posts: 53

Rep: Reputation: 18
Sorry it took me so long to get back with you I was running down some issues of my own.
I do "service name option"
like "service dhcpd start"
 
Old 05-03-2009, 07:12 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by j.smith1981 View Post
I cant remember the syntax but is the init.d command /etc/init.d/service proftpd start meant to work?

Just coming up as '/etc/init.d/service: No such file or directory'
The location (as in 'which service' or 'locate service') is '/sbin/service'. If it doesn't start then you should check /var/log/messages, or wherever it is supposed to log to, for informational or error messages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install Fedora fc10 tvoltagg Fedora - Installation 4 03-13-2009 11:10 AM
Help proftpd fedora bennieboy Linux - Server 5 02-19-2009 02:27 AM
ProFTPD on Fedora Soujiro Linux - Newbie 0 04-20-2004 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration