Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm a newbie. I had Red Hat Linux 8 before, now I have 9.
What's driving me nuts is I would just like to set up virtual users on a FTP server on my computer. Also, I would like those virtual users to have different home directories, and I don't want to have to create system accounts to do that.
I read that vsftpd and ProFTPd supports virtual users, but you can't specify different settings for each of them.
Pure-FTPd can, but I was never, never able to enable its virtual users feature, and that server is driving me nuts. I followed all the steps written in their documentation for setting up virtual users, including the command 'pure-db mkdb', and I always get "Authentication Failed" when I try the server with the virtual username. I tried other methods for weeks and I posted in their forum and they don't have a clue what's going on!
Is there anyone who has any ideas? Maybe different deamon? Different login script? I dunno.
I use PureFTPd myself. I remember I had problems at the beginning, but after you know how to set up an account, it's really easy. Here's set of commands I use to add another user:
pure-pw useradd someone -u ftpuser -d /home/ftpusers/someone
Where ftpuser is an ID (with no shell), /home/ftpusers is my FTP directory.
Do you have it from RPM or you compiled it yourself? If you did it yourself, do you remember which configure options you used?
Look if you have /etc/pureftpd.passwd. Add an entry 'pure-pw useradd...', but without mkdb and see if the new entry is added.
Thanks for the information. However, i've tried using proFTPD and the ftpasswd file, but still cannot seem to get it to work.
When compiling proftpd, must i specify an extra parameter or how else should I utilise ftpasswd file ?
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Xoluxion Network FTP Server daemon"
# Port 21 is the standard FTP port.
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
# Set the user and group under which the server will run.
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# Normally, we want files to be overwriteable.
ftpasswd user parameter:
[root@nexus proftpd]# ./ftpasswd --passwd --name=chyenw --uid=3001 --home=/home/staff/genexis/.vusers/chyenw --shell=/bin/ftponly
ftpasswd: --passwd: missing --gid argument: default gid set to uid
ftpasswd: updating passwd entry for user chyenw
I have the same problem as remi had. Can you tell me if it's supported to allow system and virtual users to use the FTP service at the same time? Or do i need to choose if only system or virtual users are FTP users?
My current configuration is set up to support both but at the moment only system users are getting through.
Also in one forum article (it was for Ubuntu but may still be relevant, is it not?) Eeqmcsq says that it's necessary to create soft link to tell pure-ftp to include virtual user authentication: