LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2009, 06:10 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
proftp has problem


My proftpd is version 1.3.2 with xampp 1.7.1 for linux on centos 5.3 x86.

The problem is "login incorrect."

The debug message is here;

Quote:
[root:localhost:~]# /opt/lampp/sbin/proftpd -n -c /opt/lampp/etc/proftpd.conf
localhost.localdomain - Failed binding to ::, port 21: Address already in use
localhost.localdomain - Check the ServerType directive to ensure you are configured correctly.
And "netstat -tanp" is here;

Quote:
[root:localhost:~]# netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2732/hpiod
tcp 0 0 0.0.0.0:713 0.0.0.0:* LISTEN 2227/rpc.statd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 4671/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2194/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 3359/perl
tcp 0 0 192.168.0.19:53 0.0.0.0:* LISTEN 2173/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2173/named
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2768/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2822/sendmail: acce
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2173/named
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2742/python
tcp 1 0 192.168.0.19:39534 85.10.226.202:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39535 85.10.226.202:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39530 85.10.226.202:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39531 85.10.226.202:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39529 85.10.226.202:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:55405 74.125.127.102:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:34521 74.125.53.165:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39570 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39571 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39569 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39572 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39573 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:39553 192.221.72.126:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:35859 118.214.72.100:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:53734 74.125.127.155:80 CLOSE_WAIT 3879/npviewer.bin
tcp 1 0 192.168.0.19:53649 118.214.76.20:80 CLOSE_WAIT 3879/npviewer.bin
tcp 0 0 :::80 :::* LISTEN 4499/httpd
tcp 0 0 :::21 :::* LISTEN 4706/proftpd: (acce
tcp 0 0 :::22 :::* LISTEN 2757/sshd
tcp 0 0 :::443 :::* LISTEN 4499/httpd
The "server type" at proftpd.conf is "standalone".

Any comment would be appreciated.

Last edited by windstory; 09-02-2009 at 06:12 AM.
 
Old 09-02-2009, 06:12 AM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
it means, that another instance of Proftpd is already running on that port.
First stop the current version running, then restart it. That should solve the problem, for the error message.
 
Old 09-02-2009, 06:20 AM   #3
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
To MODS: this thread should be moved to -> Linux Server section

Thanks
 
Old 09-02-2009, 06:42 AM   #4
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by teebones View Post
To MODS: this thread should be moved to -> Linux Server section

Thanks
teebones/

I stopped machine and started again for solving this problem, the same problme exists.
 
Old 09-02-2009, 07:07 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
I guess proftpd is started automatically on boot, so when you're trying to run your command, it complains. Run
Code:
 chkconfig  --list proftpd
to check if it starts on boot, and
Code:
service proftpd stop
to stop it and run your own command.

Regards
 
Old 09-02-2009, 07:43 AM   #6
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by bathory View Post
I guess proftpd is started automatically on boot, so when you're trying to run your command, it complains. Run
Code:
 chkconfig  --list proftpd
to check if it starts on boot, and
Code:
service proftpd stop
to stop it and run your own command.

Regards
bathory/

There are some problems on commands you gave.

Code:
chkconfig  --list proftpd:
There an error in reading information of proftpd service. no such file or directory.
service proftpd stop:
unrecognized service
I think this caused from xampp.
 
Old 09-02-2009, 07:54 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
I didn't knew that xampp runs proftpd.
After reading a little you have to run
Code:
/opt/lampp/lampp stopftp
to stop proftpd from running. To disable it from starting automatically edit the /opt/lampp/lampp and comment out anything related to proftpd.

Cheers
 
Old 09-02-2009, 08:26 AM   #8
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
bathory/ Thanks, I can stop ftp.

I restarted ftp, but this problem doesn't repaired.
Still I have "login incorrect" problem.
 
Old 09-02-2009, 08:35 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Use:
Code:
/opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf
to run proftpd in debug mode and watch the output when you're trying to login.
Maybe you should post proftpd.conf, to help us assisting you.
 
Old 09-02-2009, 10:25 AM   #10
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by bathory View Post
Use:
Code:
/opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf
to run proftpd in debug mode and watch the output when you're trying to login.
Maybe you should post proftpd.conf, to help us assisting you.
bathory/

The result of given command - /opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf - is here;

Code:
[root:localhost:/opt/lampp]# /opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf
 - using TCP receive buffer size of 87380 bytes
 - using TCP send buffer size of 16384 bytes
 - mod_tls/2.2.1: using OpenSSL 0.9.8k 25 Mar 2009
 - PathDenyFilter: compiling deny regex '\.ftp)|\.ht)[a-z]+$'
 - DenyFilter: compiling deny regex '\*.*/'
 - <Directory /ftp/*>: deferring resolution of path
 - <Directory /ftp/incoming/*>: deferring resolution of path
localhost.localdomain -
localhost.localdomain - Config for Windstory Ftp:
localhost.localdomain - /ftp/incoming/*
localhost.localdomain -  Limit
localhost.localdomain -   AllowAll
localhost.localdomain -  Limit
localhost.localdomain -   DenyGroup
localhost.localdomain -  AllowOverwrite
localhost.localdomain -  HideNoAccess
localhost.localdomain -  DisplayLogin
localhost.localdomain -  Umask
localhost.localdomain -  MaxClientsPerHost
localhost.localdomain -  MaxClients
localhost.localdomain -  MaxHostsPerUser
localhost.localdomain -  TransferLog
localhost.localdomain -  SQLAuthTypes
localhost.localdomain -  SQLConnectInfo
localhost.localdomain -  SQLLog_PASS
localhost.localdomain -  SQLNamedQuery_counter
localhost.localdomain -  SQLLog_EXIT
localhost.localdomain -  SQLNamedQuery_time_logout
localhost.localdomain -  SQLNamedQuery_login_time
localhost.localdomain -  SQLShowInfo_PASS
localhost.localdomain -  SQLLog_RETR
localhost.localdomain -  SQLLog_STOR
localhost.localdomain -  SQLNamedQuery_transfer1
localhost.localdomain -  SQLLog_ERR_RETR
localhost.localdomain -  SQLLog_ERR_STOR
localhost.localdomain -  SQLNamedQuery_transfer2
localhost.localdomain -  AllowStoreRestart
localhost.localdomain -  AllowRetrieveRestart
localhost.localdomain -  RequireValidShell
localhost.localdomain -  PathDenyFilter
localhost.localdomain -  DenyFilter
localhost.localdomain - /ftp/*
localhost.localdomain -  Limit
localhost.localdomain -   DenyGroup
localhost.localdomain -  Limit
localhost.localdomain -   AllowAll
localhost.localdomain -  AllowOverwrite
localhost.localdomain -  HideNoAccess
localhost.localdomain -  DisplayLogin
localhost.localdomain -  Umask
localhost.localdomain -  MaxClientsPerHost
localhost.localdomain -  MaxClients
localhost.localdomain -  MaxHostsPerUser
localhost.localdomain -  TransferLog
localhost.localdomain -  SQLAuthTypes
localhost.localdomain -  SQLConnectInfo
localhost.localdomain -  SQLLog_PASS
localhost.localdomain -  SQLNamedQuery_counter
localhost.localdomain -  SQLLog_EXIT
localhost.localdomain -  SQLNamedQuery_time_logout
localhost.localdomain -  SQLNamedQuery_login_time
localhost.localdomain -  SQLShowInfo_PASS
localhost.localdomain -  SQLLog_RETR
localhost.localdomain -  SQLLog_STOR
localhost.localdomain -  SQLNamedQuery_transfer1
localhost.localdomain -  SQLLog_ERR_RETR
localhost.localdomain -  SQLLog_ERR_STOR
localhost.localdomain -  SQLNamedQuery_transfer2
localhost.localdomain -  AllowStoreRestart
localhost.localdomain -  AllowRetrieveRestart
localhost.localdomain -  RequireValidShell
localhost.localdomain -  PathDenyFilter
localhost.localdomain -  DenyFilter
localhost.localdomain - ServerIdent
localhost.localdomain - DeferWelcome
localhost.localdomain - DefaultServer
localhost.localdomain - DisplayLogin
localhost.localdomain - DisplayConnect
localhost.localdomain - IdentLookups
localhost.localdomain - IdentLookups
localhost.localdomain - Umask
localhost.localdomain - MaxClientsPerHost
localhost.localdomain - MaxClients
localhost.localdomain - MaxHostsPerUser
localhost.localdomain - UserID
localhost.localdomain - UserName
localhost.localdomain - GroupID
localhost.localdomain - GroupName
localhost.localdomain - TransferLog
localhost.localdomain - ExtendedLog
localhost.localdomain - ExtendedLog
localhost.localdomain - ExtendedLog
localhost.localdomain - SQLLogFile
localhost.localdomain - AuthOrder
localhost.localdomain - SQLAuthTypes
localhost.localdomain - SQLConnectInfo
localhost.localdomain - SQLUserTable
localhost.localdomain - SQLUsernameField
localhost.localdomain - SQLPasswordField
localhost.localdomain - SQLUidField
localhost.localdomain - SQLGidField
localhost.localdomain - SQLHomedirField
localhost.localdomain - SQLShellField
localhost.localdomain - SQLGroupTable
localhost.localdomain - SQLGroupnameField
localhost.localdomain - SQLGroupGIDField
localhost.localdomain - SQLGroupMembersField
localhost.localdomain - SQLUserWhereClause
localhost.localdomain - SQLLog_PASS
localhost.localdomain - SQLNamedQuery_counter
localhost.localdomain - SQLLog_EXIT
localhost.localdomain - SQLNamedQuery_time_logout
localhost.localdomain - SQLNamedQuery_login_time
localhost.localdomain - SQLShowInfo_PASS
localhost.localdomain - SQLLog_RETR
localhost.localdomain - SQLLog_STOR
localhost.localdomain - SQLNamedQuery_transfer1
localhost.localdomain - SQLLog_ERR_RETR
localhost.localdomain - SQLLog_ERR_STOR
localhost.localdomain - SQLNamedQuery_transfer2
localhost.localdomain - AllowStoreRestart
localhost.localdomain - AllowRetrieveRestart
localhost.localdomain - RequireValidShell
localhost.localdomain - PathDenyFilter
localhost.localdomain - DefaultRoot
localhost.localdomain - DenyFilter
localhost.localdomain - deleting existing scoreboard '/var/log/scoreboard'
localhost.localdomain - Failed binding to ::, port 21: Address already in use
localhost.localdomain - Check the ServerType directive to ensure you are configured correctly.
And my proftpd.conf is here;

Code:
ServerName			"Windstory Ftp"
ServerType			standalone
ServerIdent			on		"Servers identifying string"
DeferWelcome			on
DefaultServer			on

DisplayLogin			.welcome	# Textfile to display on login
DisplayConnect			.connect	# Textfile to display on connection
# DisplayFirstChdir               .firstchdir	# Textfile to display on first changedir

UseReverseDNS       		off
IdentLookups        		off

Port				21
Umask				022
MaxInstances                    15
MaxClientsPerHost               3 		"Only %m connections per host allowed"
MaxClients                      10 		"Only %m total simultanious logins allowed"
MaxHostsPerUser                 1

User				nobody
Group				nobody

ScoreboardFile 			/var/log/scoreboard

# Some logging formats
LogFormat            		default 	"%h %l %u %t \"%r\" %s %b"
LogFormat            		auth    	"%v [%P] %h %t \"%r\" %s"
LogFormat            		write   	"%h %l %u %t \"%r\" %s %b"

# Define log-files to use
TransferLog          		/var/log/proftpd.xferlog
ExtendedLog         		/var/log/proftpd.access_log    WRITE,READ write
ExtendedLog          		/var/log/proftpd.auth_log      AUTH auth
ExtendedLog          		/var/log/proftpd.paranoid_log  ALL default
SQLLogFile			/var/log/proftpd.mysql

# Set up authentication via SQL
# ===========
AuthOrder                       mod_sql.c
SQLAuthTypes			Backend
SQLConnectInfo       		proftpd_admin@localhost proftpd <database_password>
SQLUserInfo       		usertable userid passwd uid gid homedir shell 
SQLGroupInfo       		grouptable groupname gid members 
SQLUserWhereClause    		"disabled=0 and (NOW()<=expiration or expiration=-1 or expiration=0)"

# Log the user logging in
SQLLog PASS counter
SQLNamedQuery counter UPDATE "lastlogin=now(), count=count+1 WHERE userid='%u'" usertable

# logout log
SQLLog EXIT time_logout
SQLNamedQuery time_logout UPDATE "lastlogout=now() WHERE userid='%u'" usertable

# display last login time when PASS command is given
SQLNamedQuery login_time SELECT "lastlogin from usertable where userid='%u'"
SQLShowInfo PASS "230" "Last login was: %{login_time}"

# xfer Log in mysql
SQLLog RETR,STOR transfer1
SQLNamedQuery  transfer1 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'c', NULL" xfer_stat
SQLLOG ERR_RETR,ERR_STOR transfer2
SQLNamedQuery  transfer2 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T', now(), 'i', NULL" xfer_stat


AllowStoreRestart 		on
AllowRetrieveRestart		on
RequireValidShell               off
PathDenyFilter                  "\\.ftp)|\\.ht)[a-z]+$"
DefaultRoot 			~
DenyFilter 			\*.*/


<Directory /ftp/*>
	AllowOverwrite		off
 	HideNoAccess		off
	<Limit READ>
		AllowAll
        </Limit>

	<Limit WRITE>
		DenyGroup	!admins
 	</Limit>
</Directory>

<Directory /ftp/incoming/*>
	AllowOverwrite		on
	HideNoAccess		on

	<Limit READ>
      		DenyGroup	!admins
    	</Limit>

    	<Limit STOR MKD>
      		AllowAll
    	</Limit>
</Directory>
And I am actually installing "proftpd-admin" at http://proftpd-adm.sourceforge.net.

My host file is here;

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
I didn't edit this host file, but there is '::1 localhost6.localdomain6 localhost6".

Last edited by windstory; 09-02-2009 at 10:27 AM.
 
Old 09-02-2009, 04:53 PM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Quote:
...
localhost.localdomain - Failed binding to ::, port 21: Address already in use
localhost.localdomain - Check the ServerType directive to ensure you are configured correctly.
From the debug output it looks that the xamppp instance of proftpd was running. You should first stop the xampp proftpd instance (using /opt/lampp/lampp stopftp) and then start proftpd in debug mode with the command I gave you in the previous post.
From the config file, I can see that you use a SQL backend to authenticate (mysql). I guess you have created the database, but you mixed the database name (proftpd) with the user (proftpd_admin) that can access it. The correct syntax of SQLConnectInfo is "databasename@host database_user user_password"
If that's the case, you have to use:
Code:
SQLConnectInfo       proftpd@localhost proftpd_admin <database_password>
 
Old 09-03-2009, 03:20 AM   #12
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
bathory/

Yes, I corrected "SQLConnectInfo" following your kind advise.

After changing "SQLConnectInfo", I can enter "database" of configure at "proFTPd Administrator" web page without error message.

1. However there are still "login incorrect" problem on connecting ftp with user id and paasword.

I made id "guest" and password "guest", tried to connect proftp server, but failed with "login incorrect".

2. When I am making user "guest", I can make user directory under "/ftp", so I made "/ftp/guest", but I could not fiind "/ftp/guest" directory at "/ftp".
 
Old 09-03-2009, 03:43 AM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
1. You should run proftpd in debug mode to see if it's a permissions problem, or an authentication problem. If you have phpmyadmin installed, you can try to use it to change the password of your user.

2.
Quote:
When I am making user "guest", I can make user directory under "/ftp", so I made "/ftp/guest", but I could not fiind "/ftp/guest" directory at "/ftp".
I'm not sure what you mean that you can't find the directory, but make sure that /ftp is owned by nobody/nobody (the uid/gid of the user that runs proftpd)
One thing you can try to do your tests, is to use a predefined directory for all users:
Code:
SQLDefaultHomedir /ftp
 
Old 09-03-2009, 05:41 AM   #14
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by bathory View Post
1. You should run proftpd in debug mode to see if it's a permissions problem, or an authentication problem. If you have phpmyadmin installed, you can try to use it to change the password of your user.

2.I'm not sure what you mean that you can't find the directory, but make sure that /ftp is owned by nobody/nobody (the uid/gid of the user that runs proftpd)
One thing you can try to do your tests, is to use a predefined directory for all users:
Code:
SQLDefaultHomedir /ftp
bathory/

The result of "/opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf" is here;

Code:
[root:localhost:~]# lampp stopftp
XAMPP: Stopping ProFTPD...
[root:localhost:~]# /opt/lampp/sbin/proftpd -nd5 -c /opt/lampp/etc/proftpd.conf
 - using TCP receive buffer size of 87380 bytes
 - using TCP send buffer size of 16384 bytes
 - mod_tls/2.2.1: using OpenSSL 0.9.8k 25 Mar 2009
 - PathDenyFilter: compiling deny regex '\.ftp)|\.ht)[a-z]+$'
 - DenyFilter: compiling deny regex '\*.*/'
 - <Directory /ftp/*>: deferring resolution of path
 - <Directory /ftp/incoming/*>: deferring resolution of path
localhost.localdomain -
localhost.localdomain - Config for Windstory Ftp:
localhost.localdomain - /ftp/incoming/*
localhost.localdomain -  Limit
localhost.localdomain -   AllowAll
localhost.localdomain -  Limit
localhost.localdomain -   DenyGroup
localhost.localdomain -  AllowOverwrite
localhost.localdomain -  HideNoAccess
localhost.localdomain -  DisplayLogin
localhost.localdomain -  Umask
localhost.localdomain -  MaxClientsPerHost
localhost.localdomain -  MaxClients
localhost.localdomain -  MaxHostsPerUser
localhost.localdomain -  TransferLog
localhost.localdomain -  SQLAuthTypes
localhost.localdomain -  SQLConnectInfo
localhost.localdomain -  SQLLog_PASS
localhost.localdomain -  SQLNamedQuery_counter
localhost.localdomain -  SQLLog_EXIT
localhost.localdomain -  SQLNamedQuery_time_logout
localhost.localdomain -  SQLNamedQuery_login_time
localhost.localdomain -  SQLShowInfo_PASS
localhost.localdomain -  SQLLog_RETR
localhost.localdomain -  SQLLog_STOR
localhost.localdomain -  SQLNamedQuery_transfer1
localhost.localdomain -  SQLLog_ERR_RETR
localhost.localdomain -  SQLLog_ERR_STOR
localhost.localdomain -  SQLNamedQuery_transfer2
localhost.localdomain -  AllowStoreRestart
localhost.localdomain -  AllowRetrieveRestart
localhost.localdomain -  RequireValidShell
localhost.localdomain -  PathDenyFilter
localhost.localdomain -  DenyFilter
localhost.localdomain - /ftp/*
localhost.localdomain -  Limit
localhost.localdomain -   DenyGroup
localhost.localdomain -  Limit
localhost.localdomain -   AllowAll
localhost.localdomain -  AllowOverwrite
localhost.localdomain -  HideNoAccess
localhost.localdomain -  DisplayLogin
localhost.localdomain -  Umask
localhost.localdomain -  MaxClientsPerHost
localhost.localdomain -  MaxClients
localhost.localdomain -  MaxHostsPerUser
localhost.localdomain -  TransferLog
localhost.localdomain -  SQLAuthTypes
localhost.localdomain -  SQLConnectInfo
localhost.localdomain -  SQLLog_PASS
localhost.localdomain -  SQLNamedQuery_counter
localhost.localdomain -  SQLLog_EXIT
localhost.localdomain -  SQLNamedQuery_time_logout
localhost.localdomain -  SQLNamedQuery_login_time
localhost.localdomain -  SQLShowInfo_PASS
localhost.localdomain -  SQLLog_RETR
localhost.localdomain -  SQLLog_STOR
localhost.localdomain -  SQLNamedQuery_transfer1
localhost.localdomain -  SQLLog_ERR_RETR
localhost.localdomain -  SQLLog_ERR_STOR
localhost.localdomain -  SQLNamedQuery_transfer2
localhost.localdomain -  AllowStoreRestart
localhost.localdomain -  AllowRetrieveRestart
localhost.localdomain -  RequireValidShell
localhost.localdomain -  PathDenyFilter
localhost.localdomain -  DenyFilter
localhost.localdomain - ServerIdent
localhost.localdomain - DeferWelcome
localhost.localdomain - DefaultServer
localhost.localdomain - DisplayLogin
localhost.localdomain - DisplayConnect
localhost.localdomain - IdentLookups
localhost.localdomain - IdentLookups
localhost.localdomain - Umask
localhost.localdomain - MaxClientsPerHost
localhost.localdomain - MaxClients
localhost.localdomain - MaxHostsPerUser
localhost.localdomain - UserID
localhost.localdomain - UserName
localhost.localdomain - GroupID
localhost.localdomain - GroupName
localhost.localdomain - TransferLog
localhost.localdomain - ExtendedLog
localhost.localdomain - ExtendedLog
localhost.localdomain - ExtendedLog
localhost.localdomain - SQLLogFile
localhost.localdomain - AuthOrder
localhost.localdomain - SQLAuthTypes
localhost.localdomain - SQLConnectInfo
localhost.localdomain - SQLUserTable
localhost.localdomain - SQLUsernameField
localhost.localdomain - SQLPasswordField
localhost.localdomain - SQLUidField
localhost.localdomain - SQLGidField
localhost.localdomain - SQLHomedirField
localhost.localdomain - SQLShellField
localhost.localdomain - SQLGroupTable
localhost.localdomain - SQLGroupnameField
localhost.localdomain - SQLGroupGIDField
localhost.localdomain - SQLGroupMembersField
localhost.localdomain - SQLUserWhereClause
localhost.localdomain - SQLDefaultHomedir
localhost.localdomain - SQLLog_PASS
localhost.localdomain - SQLNamedQuery_counter
localhost.localdomain - SQLLog_EXIT
localhost.localdomain - SQLNamedQuery_time_logout
localhost.localdomain - SQLNamedQuery_login_time
localhost.localdomain - SQLShowInfo_PASS
localhost.localdomain - SQLLog_RETR
localhost.localdomain - SQLLog_STOR
localhost.localdomain - SQLNamedQuery_transfer1
localhost.localdomain - SQLLog_ERR_RETR
localhost.localdomain - SQLLog_ERR_STOR
localhost.localdomain - SQLNamedQuery_transfer2
localhost.localdomain - AllowStoreRestart
localhost.localdomain - AllowRetrieveRestart
localhost.localdomain - RequireValidShell
localhost.localdomain - PathDenyFilter
localhost.localdomain - DefaultRoot
localhost.localdomain - DenyFilter
localhost.localdomain - ProFTPD 1.3.2 (stable) (built Fri Apr 10 10:34:19 CEST 2009) standalone mode STARTUP
At the end line, the cursor is blinking only.

And, I put "SQLDefaultHomedir /ftp" into proftpd.conf, and "chown nobody:nobody /ftp".

And try to make user "test1" again, but same result.
The result of trying to connect ftp://my-server.org from 192.168.0.2 is here;

Code:
localhost.localdomain - ProFTPD 1.3.2 (stable) (built Fri Apr 10 10:34:19 CEST 2009) standalone mode STARTUP
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - session requested from client in unknown class
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - AuthOrder in effect, resetting auth module order
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - connected - local  : ::ffff:192.168.0.19:21
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - connected - remote : ::ffff:192.168.0.1:52576
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - FTP session opened.
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'USER test1' to mod_tls
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'USER test1' to mod_core
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'USER test1' to mod_core
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'USER test1' to mod_delay
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'USER test1' to mod_auth
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching CMD command 'USER test1' to mod_auth
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - no supplemental groups found for user 'test1'
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching POST_CMD command 'USER test1' to mod_sql
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching POST_CMD command 'USER test1' to mod_delay
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching LOG_CMD command 'USER test1' to mod_sql
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching LOG_CMD command 'USER test1' to mod_log
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_cor e
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_cor e
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_sql
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - no supplemental groups found for user 'test1'
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_del ay
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_aut h
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching CMD command 'PASS (hidden)' to mod_auth
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - USER test1: no such user found from ::ffff:192.168.0.1  [::ffff:192.168.0.1] to ::ffff:192.168.0.19:21
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mo d_sql
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mo d_delay
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod _sql
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod _log
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod _auth
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - FTP session closed.
And source of create_user.sh is here;

Code:
#!/bin/bash
echo "Welcome to the create-user-script"
USER=$1
USER_ID=$2
GROUP_ID=$3
HOMEDIR=$4
EMAIL=$5

echo "Userdata:"
echo -e "\tUsername:\t" $USER
echo -e "\tUser ID:\t" 	$USER_ID
echo -e "\tGroup ID:\t" $GROUP_ID
echo -e "\tHomedirectory:\t" $HOMEDIR
echo -e "\tE-mail:\t\t" $EMAIL


echo -e "\nParams: "
n=0
for i in $*; do
	echo -e "\t$n : $i"
	let n+=1
done
 
Old 09-03-2009, 06:15 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Quote:
localhost.localdomain (::ffff:192.168.0.1[::ffff:192.168.0.1]) - USER test1: no such user found from ::ffff:192.168.0.1 [::ffff:192.168.0.1] to ::ffff:192.168.0.19:2
It looks like the script to create users from proFTPd Administrator does not work. It does not require a password for the user to be created.
Use phpmyadmin to create a user in the proftpd database to test the whole setup and if it works then you can try to debug proFTPd Administrator.
 
  


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
:'-( proFTP problem brixton Linux - Software 7 04-19-2006 06:48 PM
proftp copying problem zatka Linux - Networking 2 01-11-2005 11:27 PM
ProFTP Problem KeithKessler Linux - Software 3 12-04-2004 10:28 AM
Another ProFTP Problem question... gwdragon Slackware 15 10-29-2004 04:14 AM
ProFTP motd problem BradW Linux - Software 0 07-04-2004 05:28 AM


All times are GMT -5. The time now is 09:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration