#1  
Old 9th March 2006, 02:50
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default ProFTP & SuSe 10

I ran the SuSe10 HowTo, made the init.d/proftpd file, then copied my proftpd.conf from my FC4 machine to the SuSe machine. A restart got
Code:
server1:~ #  - Fatal: unknown configuration directive 'AuthPAMConfig' on line 16 of '/etc/proftpd.conf'.
I commented the 2 PAM lines out and the restart went well. I then went to my NAT and reset the Vserver from the FC4 machine IP to the SuSe10 machine IP. Can't connect to the ftp site from the web.

I searched around for some possible answers first... I saw that I would probably need log files but I could not find any in /var/log ! Here is my conf though...
Code:
# This is the ProFTPD configuration file
# $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $

ServerName			"ProFTPD server"
ServerIdent			on "FTP Server ready."
ServerAdmin			root@localhost
ServerType			standalone
DefaultServer			on
AccessGrantMsg			"User %u logged in."
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"

# 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				ftp
Group				ftp

# 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		no
  <Limit ALL SITE_CHMOD>
    AllowAll
  </Limit>
  <Limit MKD DELE RNFR RNTO>
    DenyAll
  </Limit>
</Global>

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

# 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			/TheFarm

# We want 'welcome.msg' displayed at login, '.message' displayed in
# each newly chdired directory and tell users to read README* files. 
  DisplayLogin			/welcome.msg

# Some more cosmetic and not vital stuff
# DirFakeUser			on ftp
# DirFakeGroup			on ftp

# Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE SITE_CHMOD>
    AllowAll
  </Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
   <Directory /Plant&Harvest/*>
	  AllowOverwrite		no
	<Limit READ>
	  AllowAll
	</Limit>
	<Limit STOR>
	  AllowAll
	</Limit>
  </Directory>

# Logging for the anonymous transfers
  ExtendedLog		/var/log/proftpd/access.log WRITE,READ default
  ExtendedLog		/var/log/proftpd/auth.log AUTH auth

</Anonymous>
Thoughts on what I did wrong?

Lance
Reply With Quote
Sponsored Links
  #2  
Old 9th March 2006, 11:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by latcarf
I then went to my NAT and reset the Vserver from the FC4 machine IP to the SuSe10 machine IP.
What exactly do you mean with that?

Please post the output of
Code:
netstat -tap
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th March 2006, 00:49
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
What exactly do you mean with that?
That is my router... I have the FTP port to 21 and the IP pointing to the box with the running FTP. To test the new setup on the other box I have to go in and change the IP over to the new box. I guess I could set up another port and use it to test the other box could'nt I?

Quote:
Originally Posted by falko
Please post the output of
Code:
netstat -tap
Here is the netstat. I ran this before I posted and saw FTP open (or should that be proFTP?). Didn't think to post it after that, sorry.
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN      4885/xinetd
tcp        0      0 *:cvspserver            *:*                     LISTEN      4885/xinetd
tcp        0      0 *:pop3s                 *:*                     LISTEN      4885/xinetd
tcp        0      0 *:printer               *:*                     LISTEN      4885/xinetd
tcp        0      0 *:time                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:smpnameres            *:*                     LISTEN      4885/xinetd
tcp        0      0 *:sane-port             *:*                     LISTEN      4885/xinetd
tcp        0      0 *:echo                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:5801                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:rsync                 *:*                     LISTEN      4885/xinetd
tcp        0      0 *:5802                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      5252/smbd
tcp        0      0 *:5803                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:systat                *:*                     LISTEN      4885/xinetd
tcp        0      0 *:vboxd                 *:*                     LISTEN      4885/xinetd
tcp        0      0 *:5901                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:pop2                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:daytime               *:*                     LISTEN      4885/xinetd
tcp        0      0 *:5902                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:pop3                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:5903                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:netstat               *:*                     LISTEN      4885/xinetd
tcp        0      0 *:imap                  *:*                     LISTEN      4885/xinetd
tcp        0      0 *:sunrpc                *:*                     LISTEN      4573/portmap
tcp        0      0 *:chargen               *:*                     LISTEN      4885/xinetd
tcp        0      0 *:ftp                   *:*                     LISTEN      4885/xinetd
tcp        0      0 server1:domain          *:*                     LISTEN      4949/named
tcp        0      0 localhost:domain        *:*                     LISTEN      4949/named
tcp        0      0 *:ipp                   *:*                     LISTEN      4964/cupsd
tcp        0      0 *:smtp                  *:*                     LISTEN      5018/master
tcp        0      0 localhost:953           *:*                     LISTEN      4949/named
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      5252/smbd
tcp        0      0 *:www-http              *:*                     LISTEN      5382/httpd2-prefork
tcp        0      0 *:domain                *:*                     LISTEN      4949/named
tcp        0      0 *:ssh                   *:*                     LISTEN      4784/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN      5018/master
tcp        0      0 localhost:953           *:*                     LISTEN      4949/named
tcp        0      0 server1:www-http        c5850-a2-1-6:slp-notify TIME_WAIT   -
tcp        0  18980 server1:www-http        c5850-a2-1-6:datacaptor ESTABLISHED 8119/httpd2-prefork
tcp        0  18980 server1:www-http        c5850-a2-:gammafetchsvr ESTABLISHED 5655/httpd2-prefork
Reply With Quote
  #4  
Old 10th March 2006, 11:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by latcarf
That is my router... I have the FTP port to 21 and the IP pointing to the box with the running FTP. To test the new setup on the other box I have to go in and change the IP over to the new box. I guess I could set up another port and use it to test the other box could'nt I?
Should be ok if you switch the IP addresses.

Quote:
Originally Posted by latcarf
Here is the netstat. I ran this before I posted and saw FTP open (or should that be proFTP?).
Seems as if your FTP daemon is run by xinetd. Can you find an ftp related file in /etc/xinet.d?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th March 2006, 15:15
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
Should be ok if you switch the IP addresses.

Seems as if your FTP daemon is run by xinetd. Can you find an ftp related file in /etc/xinet.d?
Yes, this is because the HowTo for SuSue10 has us create one. I'll paste it here so you don't have to wonder somewhere else to see it...
Code:
#! /bin/sh
# Copyright (c) 2000-2001 SuSE GmbH Nuernberg, Germany.
# All rights reserved.
#
# Original author: Marius Tomaschewski <mt@suse.de>
#
# Slightly modified in 2003 for use with SuSE Linux 8.1,
# by http://www.learnlinux.co.uk/
#
# Slightly modified in 2005 for use with SuSE Linux 9.2,
# by Falko Timme
#
# /etc/init.d/proftpd
#
### BEGIN INIT INFO
# Provides:                proftpd
# Required-Start:        $network $remote_fs $syslog $named
# Required-Stop:
# Default-Start:        3 5
# Default-Stop:        0 1 2 6
# Description:                Starts ProFTPD server
### END INIT INFO

# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}

# Force execution if not called by a runlevel directory.
test $link = $base && START_PROFTPD=yes  # Modified by learnlinux.co.uk
test "$START_PROFTPD" = yes || exit 0    # Modified by learnlinux.co.uk

# Return values acc. to LSB for all commands but
# status (see below):
#
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

proftpd_cfg="/etc/proftpd.conf"
proftpd_bin="/usr/local/sbin/proftpd"
proftpd_pid="/usr/local/var/proftpd.pid"

[ -r $proftpd_cfg ] || exit 6
[ -x $proftpd_bin ] || exit 5

# Source status functions
. /etc/rc.status

# First reset status of this service
rc_reset

case "$1" in
    start)
  echo -n "Starting ProFTPD Server: "
  test -f /etc/shutmsg && rm -f /etc/shutmsg
  /sbin/startproc $proftpd_bin
  rc_status -v
  ;;

    stop)
  echo -n "Shutting down ProFTPD Server: "
  test -x /usr/local/sbin/ftpshut && /usr/local/sbin/ftpshut now && sleep 1
  /sbin/killproc -TERM $proftpd_bin
  test -f /etc/shutmsg && rm -f /etc/shutmsg
  rc_status -v
  ;;

    restart)
  ## If first returns OK call the second, if first or
  ## second command fails, set echo return value.
  $0 stop
  $0 start
  rc_status
  ;;

    try-restart)
  ## Stop the service and if this succeeds (i.e. the
  ## service was running before), start it again.
  ## Note: not (yet) part of LSB (as of 0.7.5)
  $0 status >/dev/null &&  $0 restart
  rc_status
  ;;

    reload|force-reload)
  ## Exclusive possibility: Some services must be stopped
  ## and started to force a new load of the configuration.
  echo -n "Reload ProFTPD Server: "
  /sbin/killproc -HUP $proftpd_bin
  rc_status -v
  ;;

    status)
  # Status has a slightly different for the status command:
  # 0 - service running
  # 1 - service dead, but /var/run/  pid  file exists
  # 2 - service dead, but /var/lock/ lock file exists
  # 3 - service not running
  echo -n "Checking for ProFTPD Server: "
  checkproc $proftpd_bin
  rc_status -v
  ;;

    probe)
  ## Optional: Probe for the necessity of a reload,
  ## give out the argument which is required for a reload.
  [ $proftpd_cfg -nt $proftpd_pid ] && echo reload
  ;;

    *)
  echo "Usage: $0 {start|stop|status|restart|reload|try-restart|probe}"
  exit 1
  ;;
esac

# Set an exit status.
rc_exit
Reply With Quote
  #6  
Old 10th March 2006, 16:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

No, I don't mean /etc/init.d, I mean /etc/xinetd.d!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating of the SUSE 9.3 system bogdinator Installation/Configuration 1 7th March 2006 14:45
Is there also a Perfect Setup for SuSE 9.1 bluegrass Installation/Configuration 7 18th January 2006 18:16
The Perfect Setup - SUSE 9.3 (firewall?!) bogdinator HOWTO-Related Questions 7 12th December 2005 13:31
Suse 9.3 - Setting up the basics (File and Print Services) creativehook Suggest HOWTO 1 16th October 2005 21:50
Upgrading from SUSE 9.3 to 10.0 dlplnx Installation/Configuration 1 6th October 2005 11:37


All times are GMT +2. The time now is 13:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.