I am trying to set up vsftpd to use virtual users. Everything seems to be going OK but there is one niggle. In the instructions, the developer says: "Step 3) Set up the location of the files for the virtual users. useradd -d /home/ftpsite virtual ls -ld /home/ftpsite (which should give): drwx------ 3 virtual virtual 4096 Jul 30 00:39 /home/ftpsite We have created a user called "virtual" with a home directory "/home/ftpsite"." What I am trying to work out is where the _group_ virtual comes from (as in 3 virtual virtual ..). Has the developer omitted to mention this step and if so should I create a group called "virtual", then create the user virtual and make them a member of the group virtual? If not, what is the correct way of doing things, I wonder. When I first did this I got "2 virtual root". It's all a bit confusing. :) Fish
On Fri, 17 Dec 2004 23:33:11 +0000, Mark Crean
I am trying to set up vsftpd to use virtual users. Everything seems to be going OK but there is one niggle. In the instructions, the developer says:
"Step 3) Set up the location of the files for the virtual users.
useradd -d /home/ftpsite virtual ls -ld /home/ftpsite (which should give): drwx------ 3 virtual virtual 4096 Jul 30 00:39 /home/ftpsite
We have created a user called "virtual" with a home directory "/home/ftpsite"."
What I am trying to work out is where the _group_ virtual comes from (as in 3 virtual virtual ..). Has the developer omitted to mention this step and if so should I create a group called "virtual", then create the user virtual and make them a member of the group virtual?
If not, what is the correct way of doing things, I wonder. When I first did this I got "2 virtual root".
It's all a bit confusing.
:)
Fish
All virtual users, after authenticated, are mapped to dummy local user account - in that situation the user "virtual". You can use this name, or select something else, as you prefer, like vftp, or whatever. So, your system need to have such a user, and usually, creating a new user, automatically is created a group with the same name and it is made user's primary group. So, basically, just creating the user "virtual", the group "virtual" should be created for you. Cheers Sunny -- Get Firefox http://www.spreadfirefox.com/?q=affiliates&id=10745&t=85
Sunny wrote:
All virtual users, after authenticated, are mapped to dummy local user account - in that situation the user "virtual". You can use this name, or select something else, as you prefer, like vftp, or whatever.
So, your system need to have such a user, and usually, creating a new user, automatically is created a group with the same name and it is made user's primary group.
So, basically, just creating the user "virtual", the group "virtual" should be created for you.
OK, I now understand. Thanks very much for replying. Now on to the thornier question of trying to get ssl-encrypted ftp and firewalls to play nice. :) Fish
participants (2)
-
Mark Crean
-
Sunny