Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-18-2015, 02:00 PM   #1
LQ Newbie
Registered: Mar 2015
Posts: 20

Rep: Reputation: Disabled
vsftp anonymous user, but with a different login name

One for the "this seems simple enough..." file.

I'm supporting a legacy app that needs the following:

* Client app connects to vsftpd on 'localhost';
* Logs in as a specific, hard-coded username, let's call it "fred";
* Issues a blank password;
* Uploads files.

'fred' must also correspond to an account in /etc/passwd.

I'm well aware of the security issues here. Like I said, this is a legacy app, and the host involved is configured so that vsftpd only listens on (A better fix is on the way, but we need to make this work for now.)

vsftpd is configured to chroot the client, so there's that at least.

I've got everything working, but only provided that the client logs in by the usual means, as 'anonymous' or 'ftp'. But the login has to be 'fred'.

After lots of searching I haven't been able to find a way to configure the server to listen for password-free connections using any other client name than the usual ones, 'anonymous' and 'ftp'. I thought that I might be able to make this work using a combination of the settings,

user_config_dir=/etc/vsftpd/vsftpd_user_conf <- where fred's individual settings live...

...but so far that isn't working.

I realize that I haven't provided a complete inventory of everything I've tried so far. I can, but what I hope is that there's a recipe for this that I haven't been able to track down.
Old 06-20-2015, 03:38 AM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Originally Posted by twork View Post
...but so far that isn't working.
Vsftpd uses PAM so it prolly won't allow passwordless users? (BTW "fred" isn't an anonymous user but a local account, you could also make it a virtual Vsftp account.) So first reflex should be to check auth/secure/xfer/vsftp log files for clues.
1 members found this post helpful.
Old 06-20-2015, 08:51 AM   #3
LQ Newbie
Registered: Mar 2015
Posts: 20

Original Poster
Rep: Reputation: Disabled
Turns out, I was mistaken about the "must not use a password" part. The client does expect to use a password, so we're back out of the weeds again.

But the tip about looking in PAM was a good one that I hadn't thought of. Thanks for that.


vsftpd anonymous, vsftpdconf

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
Q: vsftp how to specify several different user login directories stormcloud Linux - Server 6 01-29-2010 03:36 AM
Can't upload file using vsftp as anonymous user SQADude Linux - Newbie 7 11-19-2009 03:28 AM
How to allow specific user to login Vsftp server winxandlinx Linux - Networking 4 05-24-2006 06:47 AM
how to establish ftp server with proftp to allow anonymous user login icoming Linux - Networking 3 10-12-2004 10:38 AM
anonymous user can't login vsftp java8964 Linux - General 1 08-07-2002 08:40 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration