LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2009, 02:25 PM   #1
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Rep: Reputation: 15
proftpd.conf file doesn't work


I used ftp command line ftp to my server in my account lyang with success. But I found my proftpd.conf did not working for some reason.
Code:
ServerName         "ProFTPD"
ServerType         standalone
DefaultServer         on
Port            21
Umask 002
MaxInstances         30
User            nobody

<Directory /opt/lampp/>
  AllowOverwrite      on
GroupOwner root
UserOwner nobody
</Directory>


DefaultRoot /opt
UserPassword nobody ChiIf5sp0L4Sk
RequireValidShell off

UseFtpUsers off
<Global>
</Global>
I configured DefaultRoot /opt. But my actual default is /opt/lampp. I configured GroupOwner root
UserOwner nobody, but with actual groupwoner = users, userowner = lyang. I even renamed proftpd.conf to proftpd.conf.rename.

How can I sure proftpd.conf is being used? If it is used, why it didn't work.

Thanks,



Lisa
 
Old 01-15-2009, 02:33 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
do:

Code:
proftpd -n -c /etc/proftpd.conf
This will start proftpd in non-daemon mode so all output/logging is in the terminal and -c will specify the config file to use.

Last edited by arckane; 01-15-2009 at 02:33 PM. Reason: spelling mistake
 
Old 01-15-2009, 03:02 PM   #3
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the reply. I added proftpd -n -c /etc/proftpd.conf to proftpd.conf file. But nothing changed. Same result.

Thanks,

Lisa
 
Old 01-15-2009, 03:40 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I added proftpd -n -c /etc/proftpd.conf to proftpd.conf file.
You need to execute this on the command line as root
proftpd -n -c /etc/proftpd.conf
 
Old 01-15-2009, 03:42 PM   #5
dirk.digalow
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
You've added the "proftpd -n ..." to the proftpd.conf file? I'm pretty sure you were to run the command from the command line. Better yet, is proftpd running? You're using standalone so the proftpd need to be running in order for you to connect to it.
 
Old 01-15-2009, 03:53 PM   #6
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
I run this command line
/opt/lampp/sbin/proftpd -n -c /opt/lampp/etc/proftpd.conf
error message:
Failed binding to 0.0.0.0, port 21: Address already in use
Check the ServerType directive to ensure you are configured correctly.
 
Old 01-15-2009, 04:00 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
first type:
/etc/init.d/proftpd stop
then
/opt/lampp/sbin/proftpd -n -c /opt/lampp/etc/proftpd.conf
 
Old 01-15-2009, 04:09 PM   #8
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
run this command:
/opt/lampp/sbin/proftpd -nd5 2>&1 >& /opt/lampp/etc/proftpdebug

- mod_tls/2.1.2: using OpenSSL 0.9.8h 28 May 2008
- <Directory /opt/lampp/*>: deferring resolution of path
beta3.midwayproducts.com -
beta3.midwayproducts.com - Config for ProFTPD:
beta3.midwayproducts.com - /opt/lampp/*
beta3.midwayproducts.com - AllowOverwrite
beta3.midwayproducts.com - Umask
beta3.midwayproducts.com - UserPassword
beta3.midwayproducts.com - RequireValidShell
beta3.midwayproducts.com - UseFtpUsers
beta3.midwayproducts.com - DefaultServer
beta3.midwayproducts.com - Umask
beta3.midwayproducts.com - UserID
beta3.midwayproducts.com - UserName
beta3.midwayproducts.com - GroupID
beta3.midwayproducts.com - GroupName
beta3.midwayproducts.com - DefaultRoot
beta3.midwayproducts.com - UserPassword
beta3.midwayproducts.com - RequireValidShell
beta3.midwayproducts.com - UseFtpUsers
beta3.midwayproducts.com - deleting existing scoreboard '/opt/lampp/var/proftpd/proftpd.scoreboard'
beta3.midwayproducts.com - Failed binding to 0.0.0.0, port 21: Address already in use
beta3.midwayproducts.com - Check the ServerType directive to ensure you are configured correctly.
 
Old 01-15-2009, 04:23 PM   #9
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks God! After stop proftpd and run /opt/lampp/sbin/proftpd -n -c /opt/lampp/etc/proftpd.conf
the proftpd.conf is working now! Because DefaultRoot is working. Thanks for all of you.

But I configured
User nobody
Group root

The actual uploaded file is still with user = myaccount, group = users.

Thanks,

Lisa
 
Old 01-16-2009, 09:12 AM   #10
yang_wayne
Member
 
Registered: Jan 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Umask and DefaultRoot are working.

<Directory /opt/lampp/>
AllowOverwrite on
GroupOwner root
UserOwner nobody
</Directory>

I want uploaded files with user and group owner as I configured, but it is still under my account.

Please help.

Thanks,


Lisa
 
  


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
ProFTPd - Change proftpd.conf location ('not found' error) varney Linux - Newbie 1 02-22-2008 01:51 AM
Will my XF86Config file work in place of xorg.conf file BillyGalbreath Linux - General 2 03-08-2006 06:18 AM
help needed with proftpd.conf file? sebasjuh Mandriva 1 10-11-2004 09:26 AM
help explaining proftpd.conf file freekain Linux - Newbie 5 06-14-2004 08:08 AM
Another ProFTPD conf file? KillerCheeto Linux - Newbie 1 04-24-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 AM.

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