LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   New user in vsftpd (https://www.linuxquestions.org/questions/linux-server-73/new-user-in-vsftpd-4175629988/)

webnoob 05-18-2018 03:46 PM

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?

bathory 05-19-2018 12:47 PM

Quote:

Originally Posted by webnoob (Post 5856491)
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

webnoob 05-21-2018 02:31 PM

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.

bathory 05-22-2018 12:33 AM

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

webnoob 05-22-2018 06:43 AM

Yes min is smaller then max and I already have pasv_enable=yes and the ports are open in my firewall.

bathory 05-22-2018 08:02 AM

Quote:

Originally Posted by webnoob (Post 5857855)
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.


All times are GMT -5. The time now is 05:18 AM.