LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2017, 04:10 AM   #1
bestard
LQ Newbie
 
Registered: Oct 2015
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 08-31-2017, 10:46 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,660
Blog Entries: 11

Rep: Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694Reputation: 3694
To my knowledge, FTP itself does not support changing user after login. I think you must logout, then login as the other user.
 
Old 09-01-2017, 01:44 AM   #3
bestard
LQ Newbie
 
Registered: Oct 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
To my knowledge, FTP itself does not support changing user after login. I think you must logout, then login as the other user.
Thank you for information.

It seems like most of popular ftp daemons don't support switching user at post login in Linux system, am I right?
I'm not quite sure about this.
I've tested embedded ftp daemon on Solaris 8, it allowed users to switch identification after login while RHEL on the contrary.
Maybe it's due to an out-dated Solaris 8 system with an old function.

We had some in-house utilities developed on Solaris 8 using original ftp daemon service and USER command was used after ftp login.
It may has security concerns over original daemon, so I replaced in.ftpd with vsftpd.
If the USER command is not supported, there is nothing to do. but revise our programs.
 
  


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
VSFTPD with SSL Support Altiris Linux - Software 1 03-10-2013 04:45 AM
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
VSFTPD:How to have vsftpd ask for anon user to "send email for password"? dmurray8888 Linux - Networking 1 08-31-2008 06:04 PM
Ssl Support For Vsftpd Not Available ? 0001001 Linux - Software 1 11-13-2005 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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