LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   proftpd.conf file doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/proftpd-conf-file-doesn%27t-work-697578/)

yang_wayne 01-15-2009 02:25 PM

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

arckane 01-15-2009 02:33 PM

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.

yang_wayne 01-15-2009 03:02 PM

Thanks for the reply. I added proftpd -n -c /etc/proftpd.conf to proftpd.conf file. But nothing changed. Same result.

Thanks,

Lisa

repo 01-15-2009 03:40 PM

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

dirk.digalow 01-15-2009 03:42 PM

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.

yang_wayne 01-15-2009 03:53 PM

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.

repo 01-15-2009 04:00 PM

first type:
/etc/init.d/proftpd stop
then
/opt/lampp/sbin/proftpd -n -c /opt/lampp/etc/proftpd.conf

yang_wayne 01-15-2009 04:09 PM

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.

yang_wayne 01-15-2009 04:23 PM

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

yang_wayne 01-16-2009 09:12 AM

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


All times are GMT -5. The time now is 02:31 AM.