vsFTP and add a user.

Issues related to configuring your network
hack3rcon
Posts: 663
Joined: 2014/11/24 11:04:37

Re: vsFTP and add a user.

Post by hack3rcon » 2020/08/30 21:25:40

jlehtone wrote:
2020/08/28 19:10:01
Why did you try to move the account's home, when you actually wanted to set the path that ftp session starts in?
That is confusing.

vsftpd's config has options like local_root and user_config_dir.

Seems possible.
Thus, without "usermod" command, I can define the FTP home directory?

hack3rcon
Posts: 663
Joined: 2014/11/24 11:04:37

Re: vsFTP and add a user.

Post by hack3rcon » 2020/09/04 17:22:41

I added below lines to "vsftpd.conf" file:

Code: Select all

userlist_deny=NO
local_enable=YES
virtual_use_local_privs=YES
Then I opened "/etc/vsftpd/user_list" file and commented all default users in this file and added my current user to this file. Then:

Code: Select all

# vsftpd userlist
But it show me below error:

Code: Select all

500 OOPS: missing value in config file for: jason
Linux has a default "ftp" account that it is disabled:

Code: Select all

# passwd --status ftp
ftp LK 2019-07-01 0 99999 7 -1 (Alternate authentication scheme in use.)
# groups ftp
ftp : ftp
Can I enable this account and doesn't create another user for FTP?
Can I limit this use for just logging to FTP and not system or SSH?

Post Reply

Return to “CentOS 8 - Networking Support”