LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-27-2018, 06:25 AM   #1
Linux_nu_b
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Rep: Reputation: Disabled
Question Pureftpd to support virtual users unrecognized option '--tls=1'


i am trying to configure pureftpd to support virtual users and tls but i am getting this error:

Running: /usr/local/sbin/pure-ftpd --tls=1 -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z
/usr/local/sbin/pure-ftpd: unrecognized option '--tls=1'

i followed the following steps;
# tar xvzf pure-ftpd-1.0.43.tar.gz
# cd pure-ftpd-1.0.43
# touch /etc/pureftpd.passwd; touch pureftpd.pdb
# ./configure --with everything
# make; make install
# cd configuration-file
#cp pure-ftpd.conf /etc/
#chmod 755 pure-config.pl
# cp pure-config.pl /sbin
# nano /etc/pure-ftpd.conf
Change NoAnonymous no to yes
#mkdir /ftp.files
#adduser pureftpd
#nano /etc/passwd (remove the /bash at the last line of the file with nologin)
#chown -R pureftpdureftpd /ftp.files
#pure-pw useradd user1 -u pureftpd -g pureftpd -d /ftp.files -m
#nano /etc/pure-ftpd.conf Uncomment the line starting with PureDB. (save and exit the editor)
#pure-config.pl /etc/pure-ftpd.conf

Enable TLS support to Pure-FTPD

#mkdir -p /etc/ssl/private
#cd /etc/ssl/private
#openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
#chmod 600 pure-ftpd.pem
#pure-config.pl /etc/pure-ftpd.conf -–tls=1
 
Old 02-27-2018, 07:39 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

The correct option in order to activate TLS is -Y. Read the documentation here.
So you need to use:
Code:
/usr/local/sbin/pure-ftpd -Y1 -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z
If you use a config wrapper, you need to enable TLS in the config file, not add a "--tls=1" option at the command line.


Regards

Last edited by bathory; 02-27-2018 at 04:15 PM.
 
1 members found this post helpful.
Old 03-01-2018, 05:04 AM   #3
Linux_nu_b
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Smile

Thanks for the Help
 
  


Reply



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
LXer: How to Install Pure-FTPd with TLS and virtual users on OpenSUSE Leap 42.1 LXer Syndicated Linux News 0 07-26-2016 09:48 PM
LXer: FTP server with PureFTPd and MariaDB virtual users (incl. Quota and Bandwidth Management) on CentOS 7.2 LXer Syndicated Linux News 0 07-04-2016 02:04 PM
[SOLVED] Unrecognized option: -java Could not create the Java virtual machine. marwa88 Linux - Software 5 11-30-2015 04:02 PM
configuring pureftpd to support virtual users and tls tahacentos Linux - Security 1 07-17-2014 10:39 AM
Help: installing pureftpd & creating virtual users hbhb Linux - Server 1 04-23-2008 07:10 AM

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

All times are GMT -5. The time now is 09:29 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