Sponsored Content
Operating Systems Linux Red Hat Does vsftpd support user subcommand? Post 303002699 by bestard on Thursday 31st of August 2017 12:21:39 AM
Old 08-31-2017
Does vsftpd support user subcommand?

I'm wondering if vsftpd supports user subcommand?
I found I can't switch user after ftp login.
Maybe someone can give me a certain answer.

I always got the message as below,

Quote:
mastest.user1{~ }% ftp mastest
Connected to mastest (172.26.80.149).
220 (vsFTPd 2.2.2)
Name (mastest:user1): user1
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> user user2
530 Can't change to another user.
Login failed.
I enabled log_ftp_protocol=YES and checked the vsftpd.log,
it didn't help much actually. The log file only showed the following message.

Quote:
Thu Aug 31 12:10:03 2017 [pid 12581] FTP response: Client "172.26.80.149", "220 (vsFTPd 2.2.2)"
Thu Aug 31 12:10:05 2017 [pid 12581] FTP command: Client "172.26.80.149", "USER user1"
Thu Aug 31 12:10:05 2017 [pid 12581] [user1] FTP response: Client "172.26.80.149", "331 Please specify the password."
Thu Aug 31 12:10:07 2017 [pid 12581] [user1] FTP command: Client "172.26.80.149", "PASS <password>"
Thu Aug 31 12:10:07 2017 [pid 12580] [user1] OK LOGIN: Client "172.26.80.149"
Thu Aug 31 12:10:07 2017 [pid 12582] [user1] FTP response: Client "172.26.80.149", "230 Login successful."
Thu Aug 31 12:10:07 2017 [pid 12582] [user1] FTP command: Client "172.26.80.149", "SYST"
Thu Aug 31 12:10:07 2017 [pid 12582] [user1] FTP response: Client "172.26.80.149", "215 UNIX Type: L8"
Thu Aug 31 12:10:16 2017 [pid 12582] [user1] FTP command: Client "172.26.80.149", "USER user2"
Thu Aug 31 12:10:16 2017 [pid 12582] [user1] FTP response: Client "172.26.80.149", "530 Can't change to another user."
I didn't change many default settings of vsftpd.conf, however, it may be worth of taking a look.

Code:
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=NO
ascii_upload_enable=YES
ascii_download_enable=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
use_localtime=YES
log_ftp_protocol=YES

How can I do to switch users after ftp login using vsftpd?
Hope someone can gives me suggestions. Thanks.
 

10 More Discussions You Might Find Interesting

1. Ubuntu

500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp

I've been tearing my hair out over this: vsftp does not work on any of my RedHat Server 5.x systems - I keep getting a variation on 500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp or 500 OOPS: cannot locate user entry:nobody (different errors on different systems). I spent... (2 Replies)
Discussion started by: thomn8r
2 Replies

2. Linux

500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp

I've been fighting this for about a year: vsftp does not work on any of my RedHat Server 5.x systems - I keep getting a variation on 500 OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp or 500 OOPS: cannot locate user entry:nobody (different errors on different systems). I spent... (0 Replies)
Discussion started by: thomn8r
0 Replies

3. Solaris

user support

We have a very old sun solaris ultra spac system (about 14 years old). We have information stored on it that we reference from time to time because our new software is lacking. The system failed about a week ago and I had to do a hard boot to get it back up. It came up that time, but it failed... (6 Replies)
Discussion started by: kshinn15
6 Replies

4. UNIX for Dummies Questions & Answers

VSFTPD - User or IP based SSL encryption?

Is there a way i can only force SSL encryption if they connect from outside our network OR allow certain IP's to connect without using encryption? (0 Replies)
Discussion started by: mokachoka
0 Replies

5. UNIX for Dummies Questions & Answers

Problem using VSFTPD

Hello, When my fellow employees loggin to the FTP server they have no problems if they use FTP clients. When they try and access the FTP site using their browsers using ftp://<domain> name all they get is a pub directory which is empty. They are not even prompted for loggin. How to fix... (2 Replies)
Discussion started by: mojoman
2 Replies

6. UNIX for Dummies Questions & Answers

VSFTPD

Hi, I am using VSFTPD. I have instructed it to send all logging informartion to /var/log/messages. I would like it to record the names of users who have failed loggin attempts. I have read up on it but have not found out how to do this. Any ideas? (1 Reply)
Discussion started by: mojoman
1 Replies

7. Red Hat

vsftpd with ssl support on rhel5 64 bit

Hi Friends, I am trying to configure vsftpd server 2.0.5 on rhel5 64 bit installation. I am getting an error when initiating an ssl connection. I am using filezilla 3.0 ftp client. Client is specifically using passive mode connection. I can see the client is able to connect to the server,... (0 Replies)
Discussion started by: arumon
0 Replies

8. UNIX for Dummies Questions & Answers

Read Only user in Vsftpd

HI I have set up vsftp on my Red hat server. Chroot has been set up to control access to each user and folder directories. This all works fine. But i have one directory where i want to chroot but ensure that the ftp access is read only. Any help appreciated thanks Treds (1 Reply)
Discussion started by: treds
1 Replies

9. UNIX for Dummies Questions & Answers

Vsftpd

Hello I am new to linux. I have recently installed vsftpd in my Centos server. I have set the local_umask=0037. But now i can't understand how the window users added in a centos server can see each-other folder. ---------- Post updated at 05:59 AM ---------- Previous update was at 05:55 AM... (7 Replies)
Discussion started by: Maham Zahid
7 Replies

10. UNIX for Advanced & Expert Users

Does vsftpd support user access with client certificate with priv/pub key + vsftpd certificate?

:rolleyes:I am trying to setup all certificate based client-server environment in Linux using vsftpd and curl with openssl. I would like to make a user access with vsftpd certificate and user own client certificate (self-signed) with private/public key. I don't see google posts about the my plan... (4 Replies)
Discussion started by: gogogo
4 Replies
VSFTPD(8)						    BSD System Manager's Manual 						 VSFTPD(8)

NAME
vsftpd -- Very Secure FTP Daemon SYNOPSIS
vsftpd [configuration file and / or options] DESCRIPTION
vsftpd is the Very Secure File Transfer Protocol Daemon. The server can be launched via a ``super-server'' such as inetd(8) or xinetd(8). Alternatively, vsftpd can be launched in standalone mode, in which case vsftpd itself will listen on the network. This latter mode is easier to use, and recommended. It is activated by setting listen=YES in /etc/vsftpd.conf. Direct execution of the vsftpd binary will then launch the FTP service ready for immediate client connections. OPTIONS
An optional configuration file or files may be given on the command line. These files must be owned as root if running as root. Any command line option not starting with a "-" character is treated as a config file that will be loaded. Note that config files are loaded in the strict order that they are encountered on the command line. If no config files are specified, the default configuration file of /etc/vsftpd.conf will be loaded, after all other command line options are processed. Supported options are: -v Print the version information and exit, even if other options are encountered. -ooption=value Set a single option, value pair as per the format in the config file. Multiple -o options are supported, and they are applied in strict order relative to their appearance on the command line, including intermingling with loading of config files. EXAMPLES
vsftpd -olisten=NO /etc/vsftpd.conf -oftpd_banner=blah That example overrides vsftpd's built-in default for the "listen" option to be NO, but then loads /etc/vsftpd.conf which may override that setting. Finally, the "ftpd_banner" setting is set to "blah", which overrides any default vsftpd setting and any identical setting that was in the config file. FILES
/etc/vsftpd.conf SEE ALSO
vsftpd.conf(5) March 8, 2001
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy