LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-18-2018, 03:46 PM   #1
webnoob
LQ Newbie
 
Registered: Mar 2017
Posts: 18

Rep: Reputation: Disabled
New user in vsftpd


I have installed vsftpd and I already have two users. First user is used to upload files on a website, second user administrator which is used to open home folder. Now I would like to have a user to upload files to ftproot. How do I configure that?
 
Old 05-19-2018, 12:47 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
Originally Posted by webnoob View Post
I have installed vsftpd and I already have two users. First user is used to upload files on a website, second user administrator which is used to open home folder. Now I would like to have a user to upload files to ftproot. How do I configure that?
Define ftproot?
FYI you can create the user (e.g. foo) with a specific homedir using useradd:
Code:
useradd -m -d /path/to/ftproot foo
(If the directory exists, you can omit the -m switch)


Regards
 
Old 05-21-2018, 02:31 PM   #3
webnoob
LQ Newbie
 
Registered: Mar 2017
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks it worked.
But now I have another issue. When testing the ftp on the local network and from the outside in terminal or Command Prompt I can login, but when I type ls I get this error message
"200 PORT command successful. Consider using PASV.
425 Failed to establish connection."

But if I try to open the ftp in Windows Explore I have no problem.

In the vsftpd.conf I have typed in pasv_min_port=xxxxx and pasv_max_port=xxxxx and those ports are opened in the firewall.
 
Old 05-22-2018, 12:33 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
In the vsftpd.conf I have typed in pasv_min_port=xxxxx and pasv_max_port=xxxxx and those ports are opened in the firewall.
I guess those xxxxx are actually different numbers and the latter is bigger than former.
In your firewal you have to open the whole port range from pasv_min_port to pasv_max_port and in vstpd.conf you must add:
Code:
pasv_enable=Yes
 
Old 05-22-2018, 06:43 AM   #5
webnoob
LQ Newbie
 
Registered: Mar 2017
Posts: 18

Original Poster
Rep: Reputation: Disabled
Yes min is smaller then max and I already have pasv_enable=yes and the ports are open in my firewall.
 
Old 05-22-2018, 08:02 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
Originally Posted by webnoob View Post
Yes min is smaller then max and I already have pasv_enable=yes and the ports are open in my firewall.
Maybe your client does not support passive mode by default.
So once logged-in type "pas" to enter in passive mode and see if it works this way.

Last edited by bathory; 05-22-2018 at 08:08 AM.
 
  


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
How to edit PAM DB of VSFTPD (..add user, delete user, change user password ) jsaravana87 Linux - Server 1 10-02-2012 08:49 AM
How to manage user specific access in Linux using vsftpd and virtual user? tonyatvt Linux - Server 1 06-03-2012 02:44 AM
Which is safer? Only ssh +scp for 2 users? Or ssh (1 user) + vsftpd (1 virtual user) bvz Linux - Security 2 09-18-2011 08:55 PM
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
vsftpd - Unauthorized User Bishop609 Linux - Server 4 03-23-2007 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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