PDA

View Full Version : Root directory and Virtual users for each domain (VS-ftpd)!


honey bee
2006-01-21, 02:35 AM CST
Hello :)!

I am working on Vs-ftpd configurations.I have added a new host "domain.com" in my hosts file.I want to allocate a root directory to it and create virtual users for this directory, who will be able to access the root directory of this domain.

I know how to create virtual users for my system but don't know how to associate them with specific domain.
Can anyone of you help me with this??? :rolleyes:

mnisay
2006-01-21, 03:15 AM CST
are you using flat file shadow/passwd authentication?

if so, your user's home folder would be under the wheel group of that domain
as well as its default home location.

say
/home/www/domain/suppl/user1
/home/www/domain/suppl/user2

website is
/home/www/domain/public_html/index.html

group ownership belongs to virtual domain ofcourse like so
domain users file1
domain users domain1

you need to tweak you apache conf with this and this does not work with users/password with database.

am i getting your questions right? if not, can you repost same question but different words?

honey bee
2006-01-21, 04:07 AM CST
Hello :)!

Thanks for your reply....i am not using apahe webserver...i am just working with vsftpd......and trying to access it through my local nework.

1. I have entered a domain in "hosts" file named "domain.com", having the ip address of my system.
2. I have created two virtual users for my vsftpd, which aren't associated to this domain, the users can access when they login through the ip address of the system.
3. Now , first of all i want to assign home directory to the above domain i.e domain.com, so that when ever i ftp domain.com,i enter its home directory.
4. Secondly, i want to create virtual users for this domain which will on login enter the root directory for this domain.

The settings don't involve any webserver or DNS configuration settings.I am just working with vsftpd and want to perform this task on local network.

:confused:

mnisay
2006-01-21, 04:40 AM CST
Hello :)!

Thanks for your reply....i am not using apahe webserver...i am just working with vsftpd......and trying to access it through my local nework.

1. I have entered a domain in "hosts" file named "domain.com", having the ip address of my system.
2. I have created two virtual users for my vsftpd, which aren't associated to this domain, the users can access when they login through the ip address of the system.
3. Now , first of all i want to assign home directory to the above domain i.e domain.com, so that when ever i ftp domain.com,i enter its home directory.
4. Secondly, i want to create virtual users for this domain which will on login enter the root directory for this domain.

The settings don't involve any webserver or DNS configuration settings.I am just working with vsftpd and want to perform this task on local network.

:confused:

useradd -d /home/user1 user1

this will add user1 with default folder /home/user1.
if your domain is in /home/www/domain1 and you just want user1 to ftp and
drop to that domain1 folder, you can change user1 default folder like so

usermod -d /home/www/domain1 user1

using the above, after successful ftp of user1, user1 will be dropped to /home/www/domain1 folder automatically.

now ,for the main user of the domain1,
useradd -d /home/www/domain1 mainuser1

but its not advisable though. since you do not have web and dns server,i dont see
any domain here, it is more of user and group settings whether by shell or ftp or telnet or
private WWW.

did we get it right?

honey bee
2006-01-21, 05:18 AM CST
Hello :)

By using this line:
useradd -d /home/user1 user1

to add a user to the group , we are creating real user.I want to work with virtual users.