Solved

vsFTPd

Posted on 2004-03-27
3
496 Views
Last Modified: 2010-03-18
Let me Start by saying Im very new to linux I was hosting a FTP server in Windows using
3rd party software (Ability Server) also has SMTP,HTTP servers. Now I would like to let my
Linux box host these services.  So one server at a time Starting with FTP.
I have the anonymous option working and the Accunts on my local box to work now I need
to have a user that does not have a local login to be able to accss the server .

I'm running RedHat 9 with vsFTPd
What I need is

say a username of: username
when they log in I want them to go to  /var/somefolder

how do I create a user that can not log on localy but can on ftp ?
will they then have access to a shell ?
and has the home of /var/somefolder
0
Comment
Question by:mbosco
3 Comments
 

Author Comment

by:mbosco
ID: 10696562
what login script should i use ?
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 250 total points
ID: 10696634
Yes, you can do this. The keyword is "virtual users". If you have the vsftpd sources, there is a directory EXAMPLE/VIRTUAL_USERS that has a sample configuration for this.

This page also has an explanation about how this works: http://www.vsftpdrocks.org/faq/ (about half way down the page).

These virtual users will not be able to log into the system, because they don't have an entry in the /etc/password file.
0
 
LVL 2

Expert Comment

by:PaulS_III
ID: 10723568
I have had success in adding users this way:

useradd -g somegroup -d /home/username -s /bin/false username

This will create the user's home directory but not allow them to actually login to a shell. The -s /bin/false can vary depending on the flavor of linux you are using. In fact, for RedHat I fairly certain you can use /bin/false or /sbin/nologin.

Hope that helps :)

Paul
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question