openSUSE Forums > Network/Internet » Configuring custom authentication for FTP server

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Oct-2009, 18:50
djechelon's Avatar
Puzzled Penguin
 
Join Date: Sep 2008
Location: Naples, Italy
Posts: 35
djechelon hasn't been rated much yet
Send a message via MSN to djechelon Send a message via Skype™ to djechelon
Default Configuring custom authentication for FTP server

Hello,
I would like to configure a custom authentication system for virtual FTP accounts.
I have recently used vsftp, configuring it through YaST, however it requires me to set up a UNIX account for each user that wants to log in.

Instead, I need to create a virtual domain hosting environment, where each user with a UNIX account can set up FTP accounts for each domain of their customers. I don't want a UNIX account for each domain name.

Each virtual FTP user has its home directory under its creator's home directory, for example
/home/djechelon/virtualhost/www.example1.com
/home/djechelon/virtualhost/www.example2.com
/home/djechelon/virtualhost/www.example3.com
/home/pippobaudo/virtualhost/www.example4.com
/home/pippobaudo/virtualhost/www.example5.com
/home/pippobaudo/virtualhost/www.example6.com
(I can still use symbolic links.....)

I was thinking about using a MySQL/SQLite database to store credentials, but how to map the triple (username, password, home) into vsftpd? In other words, how to make sure that I can login with username www.example5.org and have chroot access (as either user pippobaudo or Apache's wwwrun, not currently sure) to /home/pippobaudo/virtualhost/www.example5.com?

Is it possible? Do I need to use a different server?


Another question about it. I have several IP addresses: how to run two independent instances of vsftpd (or another FTP server software), each one with its own configuration, on different IP addresses?

Thank you in advance
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2